Skip to content

Commit d20e240

Browse files
committed
Fix typos
1 parent 0f5bf2e commit d20e240

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

faucet.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewFaucet(
5555
logger: noopLogger,
5656
config: config.DefaultConfig(),
5757
prepareTxMsgFn: defaultPrepareTxMessage,
58-
rpcMiddlewares: nil, // no rpcMiddlewares by default
58+
rpcMiddlewares: nil, // no middlewares by default
5959

6060
mux: chi.NewMux(),
6161
}

handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var (
2424
errInvalidMethod = errors.New("unknown RPC method call")
2525
)
2626

27-
// wrapJSONRPC wraps the given handler and rpcMiddlewares into a JSON-RPC 2.0 pipeline
27+
// wrapJSONRPC wraps the given handler and middlewares into a JSON-RPC 2.0 pipeline
2828
func wrapJSONRPC(handlerFn HandlerFunc, mws ...Middleware) http.HandlerFunc {
2929
callChain := chainMiddlewares(mws...)(handlerFn)
3030

@@ -60,7 +60,7 @@ func wrapJSONRPC(handlerFn HandlerFunc, mws ...Middleware) http.HandlerFunc {
6060
}
6161

6262
// Parse the request.
63-
// This executes all the rpcMiddlewares, and
63+
// This executes all the middlewares, and
6464
// finally the base handler for the endpoint
6565
resp := callChain(ctx, req)
6666

@@ -84,7 +84,7 @@ func wrapJSONRPC(handlerFn HandlerFunc, mws ...Middleware) http.HandlerFunc {
8484
}
8585
}
8686

87-
// chainMiddlewares combines the given rpcMiddlewares
87+
// chainMiddlewares combines the given JSON-RPC middlewares
8888
func chainMiddlewares(mw ...Middleware) Middleware {
8989
return func(final HandlerFunc) HandlerFunc {
9090
h := final

0 commit comments

Comments
 (0)