fixed bad naming
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Jake Hillion 2021-05-13 22:29:04 +01:00
parent c9ae461e0e
commit 5753687d5b

View File

@ -82,7 +82,7 @@ func buildTcp(
}
if peer.RemoteHost != "" {
f, err := tcp.InitiateFlow(laddr, fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort), initiateVerifiers(vs), initiateGenerators(gs))
f, err := tcp.InitiateFlow(laddr, fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort), initialiseVerifiers(vs), initialiseGenerators(gs))
if err != nil {
return err
@ -134,8 +134,8 @@ func buildUdp(
f, err := udp.InitiateFlow(
laddr,
fmt.Sprintf("%s:%d", peer.RemoteHost, peer.RemotePort),
initiateVerifiers(vs),
initiateGenerators(gs),
initialiseVerifiers(vs),
initialiseGenerators(gs),
c(),
time.Duration(peer.KeepAlive)*time.Second,
)
@ -162,7 +162,7 @@ func buildUdp(
return nil
}
func initiateVerifiers(vs []func() proxy.MacVerifier) (out []proxy.MacVerifier) {
func initialiseVerifiers(vs []func() proxy.MacVerifier) (out []proxy.MacVerifier) {
out = make([]proxy.MacVerifier, len(vs))
for i, v := range vs {
out[i] = v()
@ -170,7 +170,7 @@ func initiateVerifiers(vs []func() proxy.MacVerifier) (out []proxy.MacVerifier)
return
}
func initiateGenerators(gs []func() proxy.MacGenerator) (out []proxy.MacGenerator) {
func initialiseGenerators(gs []func() proxy.MacGenerator) (out []proxy.MacGenerator) {
out = make([]proxy.MacGenerator, len(gs))
for i, g := range gs {
out[i] = g()