Check the CloudKit schema when packaging and show broken iCloud sync
This commit is contained in:
@@ -32,6 +32,7 @@ type Client struct {
|
||||
Commit string
|
||||
ConnectedAt time.Time
|
||||
LastActionAt *time.Time
|
||||
Sync *api.ClientSync
|
||||
}
|
||||
|
||||
type Transfer struct {
|
||||
@@ -99,6 +100,12 @@ func (r *Registry) Acted(id, login, host, commit string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (r *Registry) Synced(id, login, host, commit string, sync api.ClientSync) {
|
||||
r.mu.Lock()
|
||||
defer r.mu.Unlock()
|
||||
r.entry(id, login, host, commit, time.Now()).Sync = &sync
|
||||
}
|
||||
|
||||
func (r *Registry) Serve(ctx context.Context, ws *websocket.Conn, id, login, host, commit string) {
|
||||
ws.SetReadLimit(readLimit)
|
||||
c := &conn{ws: ws, done: make(chan struct{}), pending: map[string]chan api.ClientReply{}}
|
||||
|
||||
Reference in New Issue
Block a user