From 6cdc221f59236b6474495d3709b7de40cb7eff9c Mon Sep 17 00:00:00 2001 From: yulng Date: Sun, 5 Feb 2023 18:50:46 +0800 Subject: [PATCH] 'go routine' should be 'goroutine' Signed-off-by: yulng --- pkg/cri/sbserver/sandbox_portforward_linux.go | 2 +- pkg/cri/server/sandbox_portforward_linux.go | 2 +- pkg/process/init.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/cri/sbserver/sandbox_portforward_linux.go b/pkg/cri/sbserver/sandbox_portforward_linux.go index 3a156f04d..c6dd3cf55 100644 --- a/pkg/cri/sbserver/sandbox_portforward_linux.go +++ b/pkg/cri/sbserver/sandbox_portforward_linux.go @@ -64,7 +64,7 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str // golang has enabled RFC 6555 Fast Fallback (aka HappyEyeballs) by default in 1.12 // It means that if a host resolves to both IPv6 and IPv4, it will try to connect to any // of those addresses and use the working connection. - // However, the implementation uses go routines to start both connections in parallel, + // However, the implementation uses goroutines to start both connections in parallel, // and this cases that the connection is done outside the namespace, so we try to connect // serially. // We try IPv4 first to keep current behavior and we fallback to IPv6 if the connection fails. diff --git a/pkg/cri/server/sandbox_portforward_linux.go b/pkg/cri/server/sandbox_portforward_linux.go index 6ebef8d5b..c616f77b8 100644 --- a/pkg/cri/server/sandbox_portforward_linux.go +++ b/pkg/cri/server/sandbox_portforward_linux.go @@ -64,7 +64,7 @@ func (c *criService) portForward(ctx context.Context, id string, port int32, str // golang has enabled RFC 6555 Fast Fallback (aka HappyEyeballs) by default in 1.12 // It means that if a host resolves to both IPv6 and IPv4, it will try to connect to any // of those addresses and use the working connection. - // However, the implementation uses go routines to start both connections in parallel, + // However, the implementation uses goroutines to start both connections in parallel, // and this cases that the connection is done outside the namespace, so we try to connect // serially. // We try IPv4 first to keep current behavior and we fallback to IPv6 if the connection fails. diff --git a/pkg/process/init.go b/pkg/process/init.go index 7c21b6529..98d577885 100644 --- a/pkg/process/init.go +++ b/pkg/process/init.go @@ -46,7 +46,7 @@ type Init struct { initState initState // mu is used to ensure that `Start()` and `Exited()` calls return in - // the right order when invoked in separate go routines. + // the right order when invoked in separate goroutines. // This is the case within the shim implementation as it makes use of // the reaper interface. mu sync.Mutex