From 5e2096a115fbc0991c95037b4d1f450aae6af447 Mon Sep 17 00:00:00 2001 From: depthlending Date: Wed, 11 Dec 2024 10:47:40 +0800 Subject: [PATCH] chore: fix some function names in comment Signed-off-by: depthlending --- tm2/pkg/bft/rpc/lib/server/handlers.go | 4 ++-- tm2/pkg/crypto/ledger/ledger_secp256k1.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tm2/pkg/bft/rpc/lib/server/handlers.go b/tm2/pkg/bft/rpc/lib/server/handlers.go index 88ee26da4a9..054a2c4203f 100644 --- a/tm2/pkg/bft/rpc/lib/server/handlers.go +++ b/tm2/pkg/bft/rpc/lib/server/handlers.go @@ -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 { @@ -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 { diff --git a/tm2/pkg/crypto/ledger/ledger_secp256k1.go b/tm2/pkg/crypto/ledger/ledger_secp256k1.go index 1d0ac8b05f0..3d3bc60af7c 100644 --- a/tm2/pkg/crypto/ledger/ledger_secp256k1.go +++ b/tm2/pkg/crypto/ledger/ledger_secp256k1.go @@ -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. //