default periodic sync timeout

This commit is contained in:
Sergey Cherepanov 2023-02-13 22:09:06 +03:00 committed by Mikhail Iudin
parent 7409171af3
commit de47b5aaf5
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -58,7 +58,7 @@ func NewHeadSync(
l := log.With(zap.String("spaceId", spaceId))
factory := spacesyncproto.ClientFactoryFunc(spacesyncproto.NewDRPCSpaceSyncClient)
syncer := newDiffSyncer(spaceId, diff, peerManager, cache, storage, factory, syncStatus, l)
periodicSync := periodicsync.NewPeriodicSync(syncPeriod, time.Minute*10, syncer.Sync, l)
periodicSync := periodicsync.NewPeriodicSync(syncPeriod, time.Minute, syncer.Sync, l)
return &headSync{
spaceId: spaceId,