Skip to content

Commit 9af364e

Browse files
kielbarrykaralabe
authored andcommitted
node: all golint warnings fixed (#16773)
* node: all golint warnings fixed * node: rm per peter * node: rm per peter
1 parent 09d4424 commit 9af364e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

node/api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func (api *PrivateAdminAPI) StartWS(host *string, port *int, allowedOrigins *str
217217
return true, nil
218218
}
219219

220-
// StopRPC terminates an already running websocket RPC API endpoint.
220+
// StopWS terminates an already running websocket RPC API endpoint.
221221
func (api *PrivateAdminAPI) StopWS() (bool, error) {
222222
api.node.lock.Lock()
223223
defer api.node.lock.Unlock()

node/node_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -507,8 +507,8 @@ func TestAPIGather(t *testing.T) {
507507
}
508508
// Register a batch of services with some configured APIs
509509
calls := make(chan string, 1)
510-
makeAPI := func(result string) *OneMethodApi {
511-
return &OneMethodApi{fun: func() { calls <- result }}
510+
makeAPI := func(result string) *OneMethodAPI {
511+
return &OneMethodAPI{fun: func() { calls <- result }}
512512
}
513513
services := map[string]struct {
514514
APIs []rpc.API

node/utils_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,12 @@ func InstrumentedServiceMakerC(base ServiceConstructor) ServiceConstructor {
121121
return InstrumentingWrapperMaker(base, reflect.TypeOf(InstrumentedServiceC{}))
122122
}
123123

124-
// OneMethodApi is a single-method API handler to be returned by test services.
125-
type OneMethodApi struct {
124+
// OneMethodAPI is a single-method API handler to be returned by test services.
125+
type OneMethodAPI struct {
126126
fun func()
127127
}
128128

129-
func (api *OneMethodApi) TheOneMethod() {
129+
func (api *OneMethodAPI) TheOneMethod() {
130130
if api.fun != nil {
131131
api.fun()
132132
}

0 commit comments

Comments
 (0)