Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ValyaB committed Sep 16, 2024
1 parent 59d44ca commit 57c8ed0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
11 changes: 6 additions & 5 deletions cmd/proxy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ package main
import (
"context"
"fmt"
"google.golang.org/grpc"
"google.golang.org/grpc/backoff"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/metadata"
"net/http"
"path"
"runtime"
Expand All @@ -17,7 +12,13 @@ import (
"cloud-proxy/internal/cloud/gcp/gcpauth"
"cloud-proxy/internal/config"
"cloud-proxy/internal/proxy"

"github.com/sirupsen/logrus"
"google.golang.org/grpc"
"google.golang.org/grpc/backoff"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/credentials/insecure"
"google.golang.org/grpc/metadata"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion internal/e2etest/roundtripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ package e2etest

import (
"bytes"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"fmt"
"io"
"log"
"net/http"

cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"

"github.com/google/uuid"
)

Expand Down
6 changes: 3 additions & 3 deletions internal/proxy/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ package proxy

import (
"bytes"

"context"
"fmt"
"google.golang.org/grpc"
"io"
"net/http"
"sync/atomic"
"time"

cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"google.golang.org/grpc"

cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
)

const (
Expand Down
7 changes: 4 additions & 3 deletions internal/proxy/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ import (
"testing"
"time"

"cloud-proxy/internal/config"
mock_proxy "cloud-proxy/internal/proxy/mock"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
"github.com/golang/mock/gomock"
"github.com/samber/lo"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"

"cloud-proxy/internal/config"
mock_proxy "cloud-proxy/internal/proxy/mock"
cloudproxyv1alpha "cloud-proxy/proto/gen/proto/v1alpha"
)

type mockReadCloserErr struct{}
Expand Down

0 comments on commit 57c8ed0

Please sign in to comment.