Skip to content

Commit

Permalink
client: fixed linting
Browse files Browse the repository at this point in the history
Signed-off-by: AngstyDuck <[email protected]>
  • Loading branch information
AngstyDuck committed Sep 3, 2023
1 parent d86cbc5 commit 9f1ce8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions client/v3/concurrency/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ type Session struct {
func NewSession(client *v3.Client, opts ...SessionOption) (*Session, error) {
lg := client.GetLogger()
ops := &sessionOptions{
ttl: defaultSessionTTL,
ctx: client.Ctx(),
ttl: defaultSessionTTL,
ctx: client.Ctx(),
}
for _, opt := range opts {
opt(ops, lg)
Expand Down Expand Up @@ -124,9 +124,9 @@ func (s *Session) Close() error {
}

type sessionOptions struct {
ttl int
leaseID v3.LeaseID
ctx context.Context
ttl int
leaseID v3.LeaseID
ctx context.Context
creationTimeout time.Duration
}

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/clientv3/concurrency/session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func TestCreationTimeout(t *testing.T) {
// override the grpc logger
logOb := integration2.ClientGRPCLoggerObserver(t)

_, err = concurrency.NewSession(cli, concurrency.WithCreationTimeout(3000 * time.Millisecond))
_, err = concurrency.NewSession(cli, concurrency.WithCreationTimeout(3000*time.Millisecond))
assert.Equal(t, err, context.DeadlineExceeded)

_, err = logOb.Expect(context.Background(), "Subchannel Connectivity change to TRANSIENT_FAILURE", 3)
Expand Down

0 comments on commit 9f1ce8d

Please sign in to comment.