From ca7b19a28380713adcd4e1b79441a1854f8a03ce Mon Sep 17 00:00:00 2001 From: NikitaSkrynnik Date: Mon, 29 Jul 2024 12:12:01 +1100 Subject: [PATCH] cleanup Signed-off-by: NikitaSkrynnik --- pkg/networkservice/common/begin/server.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/networkservice/common/begin/server.go b/pkg/networkservice/common/begin/server.go index 0498d37ec..ca555bea4 100644 --- a/pkg/networkservice/common/begin/server.go +++ b/pkg/networkservice/common/begin/server.go @@ -18,7 +18,6 @@ package begin import ( "context" - "fmt" "time" "github.com/edwarnicke/genericsync" @@ -120,8 +119,7 @@ func (b *beginServer) Request(ctx context.Context, request *networkservice.Netwo eventFactoryServer.updateContext(ctx) }): case <-ctx.Done(): - fmt.Println("test") - return nil, errors.New("deadline exceeded") + return nil, ctx.Err() } return conn, err