Skip to content

Commit f0d182f

Browse files
committed
refactor(storage): remove unused timout from client
Signed-off-by: Artsiom Koltun <[email protected]>
1 parent 86b9fb1 commit f0d182f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

storage/client.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@
55
package storage
66

77
import (
8-
"time"
9-
108
grpcOpi "github.com/opiproject/godpu/grpc"
119
pb "github.com/opiproject/opi-api/storage/v1alpha1/gen/go"
1210
"google.golang.org/grpc"
1311
)
1412

15-
const defaultTimeout = 10 * time.Second
16-
1713
// CreateFrontendNvmeClient defines the function type used to retrieve FrontendNvmeServiceClient
1814
type CreateFrontendNvmeClient func(cc grpc.ClientConnInterface) pb.FrontendNvmeServiceClient
1915

@@ -25,8 +21,6 @@ type Client struct {
2521
connector grpcOpi.Connector
2622
createFrontendNvmeClient CreateFrontendNvmeClient
2723
createFrontendVirtioBlkClient CreateFrontendVirtioBlkClient
28-
29-
timeout time.Duration
3024
}
3125

3226
// New creates a new instance of Client
@@ -53,6 +47,5 @@ func NewWithArgs(
5347
connector: connector,
5448
createFrontendNvmeClient: createFrontendNvmeClient,
5549
createFrontendVirtioBlkClient: createFrontendVirtioBlkClient,
56-
timeout: defaultTimeout,
5750
}, nil
5851
}

0 commit comments

Comments
 (0)