mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Implement graceful shutdown of agent.DataAccess (#1008)
* Implements graceful shutdown of agent.DataAccess and underlying Datastore/Logstore/MessageQueue * adds tests for closing agent.DataAccess and Datastore
This commit is contained in:
@@ -60,3 +60,8 @@ func (m *metricMQ) Delete(ctx context.Context, t *models.Call) error {
|
||||
defer span.End()
|
||||
return m.mq.Delete(ctx, t)
|
||||
}
|
||||
|
||||
// Close closes the underlying message queue
|
||||
func (m *metricMQ) Close() error {
|
||||
return m.mq.Close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user