style(node): fix typos (#1997)

This commit is contained in:
Daniel Liu 2026-02-05 18:01:14 +08:00 committed by GitHub
parent 46765b8486
commit 5199446cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -384,7 +384,7 @@ func (c *Config) NodeKey() *ecdsa.PrivateKey {
return key return key
} }
// CheckLegacyFiles inspects the datadir for signs of legacy static-nodes // checkLegacyFiles inspects the datadir for signs of legacy static-nodes
// and trusted-nodes files. If they exist it raises an error. // and trusted-nodes files. If they exist it raises an error.
func (c *Config) checkLegacyFiles() { func (c *Config) checkLegacyFiles() {
c.checkLegacyFile(c.ResolvePath(datadirStaticNodes)) c.checkLegacyFile(c.ResolvePath(datadirStaticNodes))

View file

@ -595,7 +595,7 @@ func newIPCServer(log log.Logger, endpoint string) *ipcServer {
return &ipcServer{log: log, endpoint: endpoint} return &ipcServer{log: log, endpoint: endpoint}
} }
// Start starts the httpServer's http.Server // start starts the httpServer's http.Server
func (is *ipcServer) start(apis []rpc.API) error { func (is *ipcServer) start(apis []rpc.API) error {
is.mu.Lock() is.mu.Lock()
defer is.mu.Unlock() defer is.mu.Unlock()

View file

@ -86,7 +86,7 @@ func TestWebsocketOrigins(t *testing.T) {
expFail: []string{ expFail: []string{
"test", // no scheme, required by spec "test", // no scheme, required by spec
"http://test", // wrong scheme "http://test", // wrong scheme
"http://test.foo", "https://a.test.x", // subdomain variatoins "http://test.foo", "https://a.test.x", // subdomain variations
"http://testx:8540", "https://xtest:8540"}, "http://testx:8540", "https://xtest:8540"},
}, },
// ip tests // ip tests