Close cluster client
This commit is contained in:
1 parent
4f4fb5e6c7
commit
1342f0dcf2
2 files changed
+2
No files matched your search
@@ -183,6 +183,7 @@ func main() {
|
||||
Header("Content-Type", "application/octet-stream").
|
||||
RequestBody(sqliteFile).
|
||||
StatusCodeToError().
|
||||
Timeout(60 * time.Second).
|
||||
DoWithoutResponse(ctx)
|
||||
if err != nil {
|
||||
panic(errors.WithMessage(err, "load sqlite file"))
|
||||
|
||||
@@ -163,6 +163,7 @@ func (s *Service) Run(ctx context.Context) error {
|
||||
|
||||
func (s *Service) Closers() []app.Closer {
|
||||
return []app.Closer{
|
||||
s.clusterCli,
|
||||
app.CloserFunc(func() error {
|
||||
s.grpcSrv.Shutdown()
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user