Skip to content

Commit

Permalink
Fix reference to config
Browse files Browse the repository at this point in the history
_Always_ run tests before you commit

Signed-off-by: Robin Ketelbuters <robin.ketelbuters@gmail.com>
  • Loading branch information
robinkb committed Apr 28, 2024
1 parent 7bb6f50 commit d4a3696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func (registry *Registry) ListenAndServe() error {

// Shutdown gracefully shuts down the registry's HTTP server.
func (registry *Registry) Shutdown() error {
dcontext.GetLogger(registry.app).Info("stopping server gracefully. Draining connections for ", config.HTTP.DrainTimeout)
dcontext.GetLogger(registry.app).Info("stopping server gracefully. Draining connections for ", registry.config.HTTP.DrainTimeout)
// shutdown the server with a grace period of configured timeout
c, cancel := context.WithTimeout(context.Background(), registry.config.HTTP.DrainTimeout)
defer cancel()
Expand Down

0 comments on commit d4a3696

Please sign in to comment.