Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: make function comment match function name #875

Merged
merged 1 commit into from
Mar 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/trustzone/authprovider/ecdsa/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion pkg/trustzone/peergater.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion pkg/vpn/vpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down