瀏覽代碼

chore: make function comment match function name (#875)

Signed-off-by: welfuture <[email protected]>
welfuture 6 月之前
父節點
當前提交
8ad6d28985
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      pkg/trustzone/authprovider/ecdsa/crypto.go
  2. 1 1
      pkg/trustzone/peergater.go
  3. 1 1
      pkg/vpn/vpn.go

+ 1 - 1
pkg/trustzone/authprovider/ecdsa/crypto.go

@@ -187,7 +187,7 @@ type signature struct {
 	R, S *big.Int
 }
 
-// marhalSignature returns ASN.1 encoded bytes for the given integers,
+// marshalSignature returns ASN.1 encoded bytes for the given integers,
 // suitable for PEM encoding.
 func marshalSignature(r, s *big.Int) ([]byte, error) {
 	sig := signature{

+ 1 - 1
pkg/trustzone/peergater.go

@@ -43,7 +43,7 @@ func (pg *PeerGater) Enabled() bool {
 	return pg.enabled
 }
 
-// Disables turn off the peer gating mechanism
+// Disable turn off the peer gating mechanism
 func (pg *PeerGater) Disable() {
 	pg.Lock()
 	defer pg.Unlock()

+ 1 - 1
pkg/vpn/vpn.go

@@ -286,7 +286,7 @@ func connectionWorker(
 	}
 }
 
-// redirects packets from the interface to the node using the routing table in the blockchain
+// readPackets packets from the interface to the node using the routing table in the blockchain
 func readPackets(ctx context.Context, mgr streamManager, c *Config, n *node.Node, ledger *blockchain.Ledger, ifce *water.Interface, nc node.Config) error {
 	ip, _, err := net.ParseCIDR(c.InterfaceAddress)
 	if err != nil {