diff --git a/node/api.go b/node/api.go index 60e207932d..66cd1dde33 100644 --- a/node/api.go +++ b/node/api.go @@ -232,7 +232,7 @@ func (api *PrivateAdminAPI) StartWS(host *string, port *int, allowedOrigins *str } } - modules := api.node.config.WSModxules + modules := api.node.config.WSModules if apis != nil { modules = nil for _, m := range strings.Split(*apis, ",") { diff --git a/node/node.go b/node/node.go index c49a3448a8..39e15e0a74 100644 --- a/node/node.go +++ b/node/node.go @@ -275,7 +275,7 @@ func (n *Node) openDataDir() error { } // startRPC is a helper method to start all the various RPC endpoints during node -// startup. It's not meant to be called at any time afterwards, as it makes certain +// startup. It's not meant to be called at any time afterwards as it makes certain // assumptions about the state of the node. func (n *Node) startRPC(services map[reflect.Type]Service) error { // Gather all the possible APIs to surface