Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-07 09:34:55 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-09-07 09:34:55 +0300
commit7f2f99daf70c112af4b8388a87d035601bc23eac (patch)
tree470e0df960b2f6e9220108de8dd15a0ec9e8574f /tools
parenteeffe3ea0a7d6f019b1c4d8de037325e6ffc137f (diff)
global: Stop using public `client` package
Refactor all callsites of our public `client` package such that they instead use our internal packages. This ensures that we can stay agile and refactor our internal APIs without breaking users of our public API.
Diffstat (limited to 'tools')
-rw-r--r--tools/test-boot/main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/test-boot/main.go b/tools/test-boot/main.go
index d27e53856..a9739b00b 100644
--- a/tools/test-boot/main.go
+++ b/tools/test-boot/main.go
@@ -14,7 +14,7 @@ import (
"time"
"github.com/urfave/cli/v2"
- "gitlab.com/gitlab-org/gitaly/v16/client"
+ "gitlab.com/gitlab-org/gitaly/v16/internal/grpc/client"
"google.golang.org/grpc"
)
@@ -112,9 +112,9 @@ func spawnAndWait(ctx context.Context, gitalyBin, configPath, socketPath string)
for i := 0; i < 300; i++ {
ctx, cancel := context.WithTimeout(ctx, 100*time.Millisecond)
- conn, err := client.DialContext(ctx, "unix://"+socketPath, []grpc.DialOption{
+ conn, err := client.Dial(ctx, "unix://"+socketPath, client.WithGrpcOptions([]grpc.DialOption{
grpc.WithBlock(),
- })
+ }))
cancel()