Check the CloudKit schema when packaging and show broken iCloud sync

This commit is contained in:
Ian Gulliver
2026-10-20 08:55:37 -07:00
parent e7724977c8
commit 8f3226350e
14 changed files with 502 additions and 288 deletions
+7
View File
@@ -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{}}