Skip to content

Commit

Permalink
Merge pull request #515 from brotherlogic/adjust_shutdown_time
Browse files Browse the repository at this point in the history
Increase time for a shutdown
  • Loading branch information
brotherlogic committed Jul 21, 2020
2 parents a734132 + 4df5cd4 commit 4e3832f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions goserverapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -908,8 +908,8 @@ func (s *GoServer) Shutdown(ctx context.Context, in *pbl.ShutdownRequest) (*pbl.
return
}

// Unregister us from discovery
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
// Unregister us from discovery - give us a long timeout
ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
defer cancel()

conn, err := s.FDialServer(ctx, "discover")
Expand Down

0 comments on commit 4e3832f

Please sign in to comment.