Skip to content

Commit

Permalink
linter comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ameske committed Dec 20, 2024
1 parent d1620b9 commit 10f494f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions pkg/config/remote/api/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ func (c *HTTPClient) FetchOrgStatus(ctx context.Context) (*pbgo.OrgStatusRespons
return response, err
}

// UpdatePARJWT allows for dynamic setting of a Private Action Runners JWT
// Token for authentication to the RC backend.
func (c *HTTPClient) UpdatePARJWT(jwt string) {
c.headerLock.Lock()
c.header.Set("DD-PAR-JWT", jwt)
Expand Down
3 changes: 2 additions & 1 deletion pkg/config/remote/service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ func (s *CoreAgentService) Start() {
}()
}

// UpdatePARJWT updates the stored JWT for HTTP API calls
// UpdatePARJWT updates the stored JWT for Private Action Runners
// for authentication to the remote config backend.
func (s *CoreAgentService) UpdatePARJWT(jwt string) {
s.api.UpdatePARJWT(jwt)
}
Expand Down

0 comments on commit 10f494f

Please sign in to comment.