Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

fix some typos #3957

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 net/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ func EnsureBridge(procPath string, config *BridgeConfig, log *logrus.Logger, ips
return bridgeType, errors.Wrap(err, "setting proxy_arp")
}
}
// No ipv6 router advertisments please
// No ipv6 router advertisements please
if err := sysctlIfExists(procPath, "net/ipv6/conf/"+config.WeaveBridgeName+"/accept_ra", "0"); err != nil {
return bridgeType, errors.Wrap(err, "setting accept_ra to 0")
}
Expand Down
2 changes: 1 addition & 1 deletion net/veth.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func CreateAndAttachVeth(procPath, name, peerName, bridgeName string, mtu int, k
if err := bridgeType.attach(veth); err != nil {
return cleanup("attaching veth %q to %q: %s", name, bridgeName, err)
}
// No ipv6 router advertisments please
// No ipv6 router advertisements please
if err := sysctlIfExists(procPath, "net/ipv6/conf/"+name+"/accept_ra", "0"); err != nil {
return cleanup("setting accept_ra to 0: %s", err)
}
Expand Down
2 changes: 1 addition & 1 deletion npc/metrics/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
PolicyEnforcementErrors = prometheus.NewCounter(
prometheus.CounterOpts{
Name: "weavenpc_policy_enforcement_errors",
Help: "Errors occured in enforcing the network policies.",
Help: "Errors occurred in enforcing the network policies.",
},
)
)
Expand Down