From 98e489f38d14048d668a648fc4c1ad616d3d7b32 Mon Sep 17 00:00:00 2001 From: Konrad Wojas Date: Tue, 29 Jul 2025 16:08:47 +0200 Subject: [PATCH] receive mode: do not force snapshots Do not force snapshots in receive-only mode. It only results in verbose logging. --- syncer/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncer/sync.go b/syncer/sync.go index b3c85ba..9cf44be 100644 --- a/syncer/sync.go +++ b/syncer/sync.go @@ -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.