Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sovietaced committed Jul 9, 2024
1 parent 799bd46 commit 69c6fd1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ package middleware

import (
"context"
"github.com/flyteorg/flyte/flytestdlib/logger"
"github.com/flyteorg/flyte/flytestdlib/promutils"
"runtime/debug"

"runtime/debug"

"github.com/prometheus/client_golang/prometheus"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"runtime/debug"

"github.com/flyteorg/flyte/flytestdlib/logger"
"github.com/flyteorg/flyte/flytestdlib/promutils"
)

// RecoveryInterceptor is a struct for creating gRPC interceptors that handle panics in go
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@ package middleware

import (
"context"
mockScope "github.com/flyteorg/flyte/flytestdlib/promutils"
"testing"

"testing"

"github.com/stretchr/testify/require"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
"testing"

mockScope "github.com/flyteorg/flyte/flytestdlib/promutils"
)

func TestRecoveryInterceptor(t *testing.T) {
Expand Down
4 changes: 3 additions & 1 deletion flyteadmin/pkg/server/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import (
"context"
"crypto/tls"
"fmt"
"github.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice/middleware"
"net"
"net/http"
"strings"
"time"

"github.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice/middleware"

"github.com/gorilla/handlers"
grpcmiddleware "github.com/grpc-ecosystem/go-grpc-middleware"
grpcauth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
Expand Down Expand Up @@ -37,6 +38,7 @@ import (
"github.com/flyteorg/flyte/flyteadmin/pkg/config"
"github.com/flyteorg/flyte/flyteadmin/pkg/rpc"
"github.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice"
"github.com/flyteorg/flyte/flyteadmin/pkg/rpc/adminservice/middleware"
runtime2 "github.com/flyteorg/flyte/flyteadmin/pkg/runtime"
runtimeIfaces "github.com/flyteorg/flyte/flyteadmin/pkg/runtime/interfaces"
"github.com/flyteorg/flyte/flyteadmin/plugins"
Expand Down

0 comments on commit 69c6fd1

Please sign in to comment.