Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
Signed-off-by: depthlending <[email protected]>
  • Loading branch information
depthlending committed Dec 11, 2024
1 parent c33cf67 commit 5e2096a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tm2/pkg/bft/rpc/lib/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ func (wsc *wsConnection) GetRemoteAddr() string {
return wsc.remoteAddr
}

// WriteRPCResponse pushes a response to the writeChan, and blocks until it is accepted.
// WriteRPCResponses pushes a response to the writeChan, and blocks until it is accepted.
// It implements WSRPCConnection. It is Goroutine-safe.
func (wsc *wsConnection) WriteRPCResponses(resp types.RPCResponses) {
select {
Expand All @@ -623,7 +623,7 @@ func (wsc *wsConnection) WriteRPCResponses(resp types.RPCResponses) {
}
}

// TryWriteRPCResponse attempts to push a response to the writeChan, but does not block.
// TryWriteRPCResponses attempts to push a response to the writeChan, but does not block.
// It implements WSRPCConnection. It is Goroutine-safe
func (wsc *wsConnection) TryWriteRPCResponses(resp types.RPCResponses) bool {
select {
Expand Down
2 changes: 1 addition & 1 deletion tm2/pkg/crypto/ledger/ledger_secp256k1.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func getPubKeyUnsafe(device ledger.SECP256K1, path hd.BIP44Params) (crypto.PubKe
return compressedPublicKey, nil
}

// getPubKeyAddr reads the pubkey and the address from a ledger device.
// getPubKeyAddrSafe reads the pubkey and the address from a ledger device.
// This function is marked as Safe as it will require user confirmation and
// account and index will be shown in the device.
//
Expand Down

0 comments on commit 5e2096a

Please sign in to comment.