From c1a24af131fb56b35edfe39c9b7e8138552019a4 Mon Sep 17 00:00:00 2001 From: elhmn Date: Tue, 5 Nov 2024 13:19:05 +0000 Subject: [PATCH] Make the delay gitmon agnostic --- internal/governor/conn.go | 4 ++-- internal/governor/governor.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/governor/conn.go b/internal/governor/conn.go index 618bc96..4a41bf8 100644 --- a/internal/governor/conn.go +++ b/internal/governor/conn.go @@ -201,8 +201,8 @@ func readSockstat(environ []string) updateData { res.PubkeyVerifierID = sockstat.Uint32Value(parts[1]) case "pubkey_creator_id": res.PubkeyCreatorID = sockstat.Uint32Value(parts[1]) - case "gitmon_delay": - res.GitmonDelay = sockstat.Uint32Value(parts[1]) + case "max_delay": + res.MaxDelay = sockstat.Uint32Value(parts[1]) case "command_id": res.CommandID = sockstat.StringValue(parts[1]) } diff --git a/internal/governor/governor.go b/internal/governor/governor.go index 05d076e..7f3395e 100644 --- a/internal/governor/governor.go +++ b/internal/governor/governor.go @@ -69,7 +69,7 @@ type updateData struct { GitProtocol string `json:"git_protocol,omitempty"` PubkeyVerifierID uint32 `json:"pubkey_verifier_id,omitempty"` PubkeyCreatorID uint32 `json:"pubkey_creator_id,omitempty"` - GitmonDelay uint32 `json:"gitmon_delay,omitempty"` + MaxDelay uint32 `json:"max_delay,omitempty"` // An ID that identifies a group of commands that all make up one // logical request. Is only used by the githttpdaemon to sync // its gitmon proxy and request scheduler logical threads