mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
fix typo
This commit is contained in:
parent
1719237366
commit
f1564c7106
3 changed files with 3 additions and 3 deletions
|
|
@ -241,7 +241,7 @@ func startNode(ctx *cli.Context, stack *node.Node) {
|
||||||
stack.AccountManager().Subscribe(events)
|
stack.AccountManager().Subscribe(events)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// Create an chain state reader for self-derivation
|
// Create a chain state reader for self-derivation
|
||||||
rpcClient, err := stack.Attach()
|
rpcClient, err := stack.Attach()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Fatalf("Failed to attach to self: %v", err)
|
utils.Fatalf("Failed to attach to self: %v", err)
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDownloaderAP
|
||||||
return api
|
return api
|
||||||
}
|
}
|
||||||
|
|
||||||
// eventLoop runs an loop until the event mux closes. It will install and uninstall new
|
// eventLoop runs a loop until the event mux closes. It will install and uninstall new
|
||||||
// sync subscriptions and broadcasts sync status updates to the installed sync subscriptions.
|
// sync subscriptions and broadcasts sync status updates to the installed sync subscriptions.
|
||||||
func (api *PublicDownloaderAPI) eventLoop() {
|
func (api *PublicDownloaderAPI) eventLoop() {
|
||||||
var (
|
var (
|
||||||
|
|
|
||||||
|
|
@ -209,7 +209,7 @@ func DefaultHTTPEndpoint() string {
|
||||||
return config.HTTPEndpoint()
|
return config.HTTPEndpoint()
|
||||||
}
|
}
|
||||||
|
|
||||||
// WSEndpoint resolves an websocket endpoint based on the configured host interface
|
// WSEndpoint resolves a websocket endpoint based on the configured host interface
|
||||||
// and port parameters.
|
// and port parameters.
|
||||||
func (c *Config) WSEndpoint() string {
|
func (c *Config) WSEndpoint() string {
|
||||||
if c.WSHost == "" {
|
if c.WSHost == "" {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue