rpc: add Closing method

This commit is contained in:
Łukasz Magiera
2020-06-17 17:47:18 +02:00
parent 8b725b4b8c
commit 8b8bb5e833
3 changed files with 12 additions and 1 deletions
+4
View File
@@ -139,4 +139,8 @@ func (a *CommonAPI) Shutdown(ctx context.Context) error {
return nil
}
func (a *CommonAPI) Closing(ctx context.Context) (<-chan struct{}, error) {
return make(chan struct{}), nil // relies on jsonrpc closing
}
var _ api.Common = &CommonAPI{}