Skip to content

Commit

Permalink
fix(interface): Remove opts
Browse files Browse the repository at this point in the history
  • Loading branch information
BaptisteFoy committed Jan 19, 2023
1 parent 422a27c commit 2d3c932
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/config/remote/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const (
// ConfigUpdater defines the interface that an agent client uses to get config updates
// from the core remote-config service
type ConfigUpdater interface {
ClientGetConfigs(context.Context, *pbgo.ClientGetConfigsRequest, ...grpc.CallOption) (*pbgo.ClientGetConfigsResponse, error)
ClientGetConfigs(context.Context, *pbgo.ClientGetConfigsRequest) (*pbgo.ClientGetConfigsResponse, error)
}

// Client is a remote-configuration client to obtain configurations from the local API
Expand Down Expand Up @@ -93,7 +93,7 @@ func NewAgentGRPCConfigFetcher() (*agentGRPCConfigFetcher, error) {
}

// ClientGetConfigs implements the ConfigUpdater interface for agentGRPCConfigFetcher
func (g *agentGRPCConfigFetcher) ClientGetConfigs(ctx context.Context, request *pbgo.ClientGetConfigsRequest, opts ...grpc.CallOption) (*pbgo.ClientGetConfigsResponse, error) {
func (g *agentGRPCConfigFetcher) ClientGetConfigs(ctx context.Context, request *pbgo.ClientGetConfigsRequest) (*pbgo.ClientGetConfigsResponse, error) {
// When communicating with the core service via grpc, the auth token is handled
// by the core-agent, which runs independently. It's not guaranteed it starts before us,
// or that if it restarts that the auth token remains the same. Thus we need to do this every request.
Expand All @@ -107,7 +107,7 @@ func (g *agentGRPCConfigFetcher) ClientGetConfigs(ctx context.Context, request *

ctx = metadata.NewOutgoingContext(ctx, md)

return g.client.ClientGetConfigs(ctx, request, opts...)
return g.client.ClientGetConfigs(ctx, request)
}

// NewClient creates a new client
Expand Down

0 comments on commit 2d3c932

Please sign in to comment.