lotus-provider: fix RPC construction for real
This commit is contained in:
parent
ae67cbdb4d
commit
d518b8c5ed
@ -26,9 +26,9 @@ func LotusProviderHandler(
|
||||
readerHandler, readerServerOpt := rpcenc.ReaderParamDecoder()
|
||||
rpcServer := jsonrpc.NewServer(jsonrpc.WithServerErrors(api.RPCErrors), readerServerOpt)
|
||||
|
||||
wapi := proxy.MetricedAPI[api.LotusProvider, api.LotusProviderStruct](a)
|
||||
wapi := proxy.MetricedAPI[api.LotusProvider, *api.LotusProviderStruct](a)
|
||||
if permissioned {
|
||||
wapi = api.PermissionedAPI[api.LotusProvider, api.LotusProviderStruct](wapi)
|
||||
wapi = api.PermissionedAPI[api.LotusProvider, *api.LotusProviderStruct](wapi)
|
||||
}
|
||||
|
||||
rpcServer.Register("Filecoin", wapi)
|
||||
|
Loading…
Reference in New Issue
Block a user