Close cluster client

This commit is contained in:
komissarovyv committed 2024-10-29 21:54:01 +03:00
1 parent 4f4fb5e6c7
commit 1342f0dcf2
2 files changed
+2

No files matched your search

+1
View File
@@ -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"))
+1
View 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