Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
update host on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio1988 committed Sep 26, 2023
1 parent 64e3abc commit ddb0676
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions routes/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ func handleInit(c *gin.Context, req ControllerBody, workerState *worker.State) {
log.Infof("[CONTROLLER] [%s] Allocated area %d:%s to worker", req.Uuid, workerState.AreaId, a.Name)
assigned = true
}
workerState.Touch(c.RemoteIP())
respondWithData(c, &map[string]any{
"assigned": assigned,
"version": Version,
Expand Down

0 comments on commit ddb0676

Please sign in to comment.