update dal close

This commit is contained in:
Pavel 2024-10-25 16:04:05 +03:00
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 {