Исправить замечания ревью кода: убрать повтор в AppendOnce за счёт запаса у чистки ключей, вынести MessagePayload и SameContent, принять X-Request-Id от балансировщика, упростить фоновые задачи сервера, сократить комментарии

This commit is contained in:
2026-11-04 12:19:49 +03:00
parent c9d0f73221
commit 7fbd781ca3
25 changed files with 207 additions and 247 deletions
+1 -2
View File
@@ -129,8 +129,7 @@ func TestLogoutRevokesOnlyThatSession(t *testing.T) {
}
}
// ExpiresAt is written by this process's clock and enforced by Valkey's. In
// the tests Valkey runs in the Docker VM, whose clock may lag the Windows host
// Valkey enforces the expiry by the Docker VM clock, which may lag this host
// by a fraction of a second, so the expiry is awaited with a tolerance.
func TestSessionExpiresAfterTTL(t *testing.T) {
const clockTolerance = 3 * time.Second