2022-12-25 15:08:26 +01:00

31 lines
622 B
Go

package syncstatus
type noOpSyncStatus struct{}
func NewNoOpSyncStatus() SyncStatusUpdater {
return &noOpSyncStatus{}
}
func (n *noOpSyncStatus) HeadsChange(treeId string, heads []string) {
}
func (n *noOpSyncStatus) HeadsReceive(senderId, treeId string, heads []string) {
}
func (n *noOpSyncStatus) SetNodesOnline(senderId string, online bool) {
}
func (n *noOpSyncStatus) StateCounter() uint64 {
return 0
}
func (n *noOpSyncStatus) RemoveAllExcept(senderId string, differentRemoteIds []string, stateCounter uint64) {
}
func (n *noOpSyncStatus) Run() {
}
func (n *noOpSyncStatus) Close() error {
return nil
}