From f80e0462c7ba5ae7cf93afda3aa092d50cec1cf7 Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Tue, 19 Jul 2022 00:35:12 -0400 Subject: [PATCH] Interface change in node.RegisterApis --- pkg/rpc/http.go | 2 +- pkg/rpc/ws.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/rpc/http.go b/pkg/rpc/http.go index 81e7b143..9e1b2b86 100644 --- a/pkg/rpc/http.go +++ b/pkg/rpc/http.go @@ -29,7 +29,7 @@ import ( func StartHTTPEndpoint(endpoint string, apis []rpc.API, modules []string, cors []string, vhosts []string, timeouts rpc.HTTPTimeouts) (*rpc.Server, error) { srv := rpc.NewServer() - err := node.RegisterApis(apis, modules, srv, false) + err := node.RegisterApis(apis, modules, srv) if err != nil { utils.Fatalf("Could not register HTTP API: %w", err) } diff --git a/pkg/rpc/ws.go b/pkg/rpc/ws.go index 068653c8..063cafea 100644 --- a/pkg/rpc/ws.go +++ b/pkg/rpc/ws.go @@ -37,7 +37,7 @@ func StartWSEndpoint(endpoint string, apis []rpc.API, modules []string, wsOrigin // Register all the APIs exposed by the services handler := rpc.NewServer() - err = node.RegisterApis(apis, modules, handler, exposeAll) + err = node.RegisterApis(apis, modules, handler) if err != nil { utils.Fatalf("Could not register WS API: %w", err) }