Skip to content

Commit

Permalink
Adds naming suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: joshvanl <[email protected]>
  • Loading branch information
JoshVanL committed Nov 13, 2023
1 parent 9e6b273 commit 54abb81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,13 @@ func NewClientWithAddressContext(ctx context.Context, address string) (client Cl
}
ctx, cancel := context.WithTimeout(ctx, time.Duration(timeoutSeconds)*time.Second)
defer cancel()
return NewClientWithAddressContextNoEnvTimeout(ctx, address)
return NewClientWithAddressContextNoTimeout(ctx, address)
}

// NewClientWithAddressContextNoEnvTimeout instantiates Dapr using specific address (including port).
// NewClientWithAddressContextNoTimeout instantiates Dapr using specific address (including port).
// Ignores the DAPR_GRPC_TIMEOUT_SECONDS environment variable and has no
// default timeout.
func NewClientWithAddressContextNoEnvTimeout(ctx context.Context, address string) (client Client, err error) {
func NewClientWithAddressContextNoTimeout(ctx context.Context, address string) (client Client, err error) {
if address == "" {
return nil, errors.New("empty address")
}
Expand Down

0 comments on commit 54abb81

Please sign in to comment.