mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-11 18:20:33 +09:00

I decided to split Status and related services into multiple small but clear and cohesive components
21 lines
546 B
Go
21 lines
546 B
Go
package space
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/anytypeio/any-sync/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")
|
|
}
|