Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syncer/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (s *Syncer) syncLoop(ctx context.Context, env *lmdb.Env, r *receiver.Receiv
// To force periodic snapshots
s.lastSnapshotTime = time.Now() // first not due to interval
forceSnapshotInterval := s.c.StorageForceSnapshotInterval
forceSnapshotEnabled := forceSnapshotInterval > 0
forceSnapshotEnabled := !s.opt.ReceiveOnly && forceSnapshotInterval > 0

// Run receiver in background to get newer snapshot after loading the
// initial batch of snapshots.
Expand Down