forked from TrueCloudLab/frostfs-node
[#1437] node: Fix contextcheck linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
6921a89061
commit
7429553266
209 changed files with 1068 additions and 1036 deletions
|
@ -32,8 +32,8 @@ func (x *Server) Serve() error {
|
|||
//
|
||||
// Once Shutdown has been called on a server, it may not be reused;
|
||||
// future calls to Serve method will have no effect.
|
||||
func (x *Server) Shutdown() error {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), x.shutdownTimeout)
|
||||
func (x *Server) Shutdown(ctx context.Context) error {
|
||||
ctx, cancel := context.WithTimeout(context.WithoutCancel(ctx), x.shutdownTimeout)
|
||||
|
||||
err := x.srv.Shutdown(ctx)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue