mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 19:00:46 +00:00
style(node): fix typos (#1997)
This commit is contained in:
parent
46765b8486
commit
5199446cb6
3 changed files with 3 additions and 3 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue