mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
20 lines
587 B
Go
20 lines
587 B
Go
package clientspace
|
|
|
|
import (
|
|
"context"
|
|
"github.com/anytypeio/go-anytype-infrastructure-experiments/common/commonspace/syncstatus"
|
|
"go.uber.org/zap"
|
|
)
|
|
|
|
type statusReceiver struct {
|
|
}
|
|
|
|
func (s *statusReceiver) UpdateTree(ctx context.Context, treeId string, status syncstatus.SyncStatus) (err error) {
|
|
log.With(zap.String("treeId", treeId), zap.Bool("synced", status == syncstatus.StatusSynced)).
|
|
Debug("updating sync status")
|
|
return nil
|
|
}
|
|
|
|
func (s *statusReceiver) UpdateNodeConnection(online bool) {
|
|
log.With(zap.Bool("nodes online", online)).Debug("updating node connection")
|
|
}
|