Skip to content

Commit 29d6dc8

Browse files
committed
graceful stop rpc server
Signed-off-by: liulanzheng <lanzheng.liulz@alibaba-inc.com>
1 parent 8174392 commit 29d6dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/overlaybd-snapshotter/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func handleSignals(ctx context.Context, signals chan os.Signal, server *grpc.Ser
147147
return
148148
}
149149

150-
server.Stop()
150+
server.GracefulStop()
151151
close(doneCh)
152152
return
153153
}

0 commit comments

Comments
 (0)