added close method to YclientsDal
This commit is contained in:
parent
f89981e3ad
commit
0f50c86b1a
@ -362,3 +362,11 @@ func NewYclientsDal(ctx context.Context, cred string) (*YclientsDal, error) {
|
|||||||
AnswerRepo: answerRepo,
|
AnswerRepo: answerRepo,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (d *YclientsDal) Close(ctx context.Context) error {
|
||||||
|
err := d.conn.Close()
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user