From f0d182f977e7408e0ad3bece119fbd925fdedbc4 Mon Sep 17 00:00:00 2001 From: Artsiom Koltun Date: Mon, 15 Jan 2024 14:28:53 +0100 Subject: [PATCH] refactor(storage): remove unused timout from client Signed-off-by: Artsiom Koltun --- storage/client.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/storage/client.go b/storage/client.go index ee14493..353a792 100644 --- a/storage/client.go +++ b/storage/client.go @@ -5,15 +5,11 @@ package storage import ( - "time" - grpcOpi "github.com/opiproject/godpu/grpc" pb "github.com/opiproject/opi-api/storage/v1alpha1/gen/go" "google.golang.org/grpc" ) -const defaultTimeout = 10 * time.Second - // CreateFrontendNvmeClient defines the function type used to retrieve FrontendNvmeServiceClient type CreateFrontendNvmeClient func(cc grpc.ClientConnInterface) pb.FrontendNvmeServiceClient @@ -25,8 +21,6 @@ type Client struct { connector grpcOpi.Connector createFrontendNvmeClient CreateFrontendNvmeClient createFrontendVirtioBlkClient CreateFrontendVirtioBlkClient - - timeout time.Duration } // New creates a new instance of Client @@ -53,6 +47,5 @@ func NewWithArgs( connector: connector, createFrontendNvmeClient: createFrontendNvmeClient, createFrontendVirtioBlkClient: createFrontendVirtioBlkClient, - timeout: defaultTimeout, }, nil }