Исправить замечания ревью кода: убрать повтор в AppendOnce за счёт запаса у чистки ключей, вынести MessagePayload и SameContent, принять X-Request-Id от балансировщика, упростить фоновые задачи сервера, сократить комментарии
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user