From a4f08cbbbb13fcfbc4e7b32611ed0fff0b5ba66d Mon Sep 17 00:00:00 2001 From: Christian Ebner Date: Thu, 12 Sep 2024 16:32:59 +0200 Subject: [PATCH] server: sync: make skip reason message more genenric By specifying that the snapshot is being skipped because of the condition met on the sync target instead of 'local', the same message can be reused for the sync job in push direction without loosing sense. --- src/server/sync.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/sync.rs b/src/server/sync.rs index ffc32f45..ee40d0b9 100644 --- a/src/server/sync.rs +++ b/src/server/sync.rs @@ -480,7 +480,8 @@ impl std::fmt::Display for SkipReason { f, "{}", match self { - SkipReason::AlreadySynced => "older than the newest local snapshot", + SkipReason::AlreadySynced => + "older than the newest snapshot present on sync target", SkipReason::TransferLast => "due to transfer-last", } )