update dal close
This commit is contained in:
parent
49a7b4b41f
commit
8ab347d96f
@ -122,8 +122,12 @@ func New(ctx context.Context, cred string, minioClient *minio.Client) (*DAL, err
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (d *DAL) Close() {
|
||||
d.conn.Close()
|
||||
func (d *DAL) Close(ctx context.Context) error {
|
||||
err := d.conn.Close()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type AmoDal struct {
|
||||
|
Loading…
Reference in New Issue
Block a user