Skip to content

Commit d6e09d5

Browse files
authored
Merge pull request #95 from github/elhmn-forward-is-importing-field
Forward the `is_importing` fields to governor
2 parents bff1152 + f325c84 commit d6e09d5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/governor/conn.go

+2
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,8 @@ func readSockstat(environ []string) updateData {
209209
res.GroupID = sockstat.StringValue(parts[1])
210210
case "group_leader":
211211
res.GroupLeader = sockstat.GetBool(parts[1])
212+
case "is_importing":
213+
res.IsImporting = sockstat.BoolValue(parts[1])
212214
}
213215
}
214216

internal/governor/governor.go

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ type updateData struct {
7474
// logical request. Is only used by the githttpdaemon to sync
7575
// its gitmon proxy and request scheduler logical threads
7676
CommandID string `json:"command_id,omitempty"`
77+
// IsImporting is true if the command is an import.
78+
IsImporting bool `json:"is_importing,omitempty"`
7779
}
7880

7981
func update(w io.Writer, ud updateData) error {

0 commit comments

Comments
 (0)