Skip to content

Commit 580a095

Browse files
committed
lint
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 7248767 commit 580a095

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

app/controlplane/internal/usercontext/operation_authorization_middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func WithOperationAuthorizationMiddleware(conf *conf.OperationAuthorizationProvi
6363

6464
// LRU cache with 30s TTL keyed by "user_id:operation"
6565
authCache, err := cache.New[*operationAuthResponse](
66-
cache.WithTTL(30 * time.Second),
66+
cache.WithTTL(30*time.Second),
6767
cache.WithDescription("Operation authorization cache"),
6868
)
6969
if err != nil {

app/controlplane/internal/usercontext/operation_authorization_middleware_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ type fakeTransport struct {
3636
operation string
3737
}
3838

39-
func (f *fakeTransport) Kind() transport.Kind { return transport.KindGRPC }
40-
func (f *fakeTransport) Endpoint() string { return "" }
41-
func (f *fakeTransport) Operation() string { return f.operation }
42-
func (f *fakeTransport) RequestHeader() transport.Header { return nil }
43-
func (f *fakeTransport) ReplyHeader() transport.Header { return nil }
39+
func (f *fakeTransport) Kind() transport.Kind { return transport.KindGRPC }
40+
func (f *fakeTransport) Endpoint() string { return "" }
41+
func (f *fakeTransport) Operation() string { return f.operation }
42+
func (f *fakeTransport) RequestHeader() transport.Header { return nil }
43+
func (f *fakeTransport) ReplyHeader() transport.Header { return nil }
4444

4545
func ctxWithOperation(ctx context.Context, op string) context.Context {
4646
return transport.NewServerContext(ctx, &fakeTransport{operation: op})

0 commit comments

Comments
 (0)