implement v1 api with api modules

This commit is contained in:
Łukasz Magiera
2021-04-03 13:20:50 +02:00
parent 09c374cdde
commit f4e46c9003
5 changed files with 12 additions and 5 deletions
+2
View File
@@ -20,6 +20,8 @@ type MpoolModuleAPI interface {
MpoolPush(ctx context.Context, smsg *types.SignedMessage) (cid.Cid, error)
}
var _ MpoolModuleAPI = *new(api.FullNode)
// MpoolModule provides a default implementation of MpoolModuleAPI.
// It can be swapped out with another implementation through Dependency
// Injection (for example with a thin RPC client).