Fix check config

This commit is contained in:
世界 2023-03-05 11:26:19 +08:00
parent 03ce555104
commit 45852ca3e7
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -31,7 +31,10 @@ func check() error {
return err return err
} }
ctx, cancel := context.WithCancel(context.Background()) ctx, cancel := context.WithCancel(context.Background())
_, err = box.New(ctx, options, nil) instance, err := box.New(ctx, options, nil)
if err == nil {
instance.Close()
}
cancel() cancel()
return err return err
} }