Skip to content

Commit

Permalink
refactor(storage): remove unused timout from client
Browse files Browse the repository at this point in the history
Signed-off-by: Artsiom Koltun <artsiom.koltun@intel.com>
  • Loading branch information
artek-koltun committed Jan 17, 2024
1 parent 86b9fb1 commit f0d182f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions storage/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -25,8 +21,6 @@ type Client struct {
connector grpcOpi.Connector
createFrontendNvmeClient CreateFrontendNvmeClient
createFrontendVirtioBlkClient CreateFrontendVirtioBlkClient

timeout time.Duration
}

// New creates a new instance of Client
Expand All @@ -53,6 +47,5 @@ func NewWithArgs(
connector: connector,
createFrontendNvmeClient: createFrontendNvmeClient,
createFrontendVirtioBlkClient: createFrontendVirtioBlkClient,
timeout: defaultTimeout,
}, nil
}

0 comments on commit f0d182f

Please sign in to comment.