Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
smol
idp
Commits
5b0959b5
Commit
5b0959b5
authored
8 months ago
by
ale
Browse files
Options
Downloads
Patches
Plain Diff
Use grpc.NewClient instead of the deprecated Dial method
parent
e708f87a
No related branches found
No related tags found
1 merge request
!71
Use grpc.NewClient instead of the deprecated Dial method
Pipeline
#77711
passed
8 months ago
Stage: gen
Stage: test
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/netutil/grpc_client.go
+1
-1
1 addition, 1 deletion
internal/netutil/grpc_client.go
with
1 addition
and
1 deletion
internal/netutil/grpc_client.go
+
1
−
1
View file @
5b0959b5
...
@@ -48,7 +48,7 @@ func (c *grpcConnCache) Dial(addr string, opts ...grpc.DialOption) (*grpc.Client
...
@@ -48,7 +48,7 @@ func (c *grpcConnCache) Dial(addr string, opts ...grpc.DialOption) (*grpc.Client
fullOpts
:=
append
([]
grpc
.
DialOption
{},
c
.
opts
...
)
fullOpts
:=
append
([]
grpc
.
DialOption
{},
c
.
opts
...
)
fullOpts
=
append
(
fullOpts
,
opts
...
)
fullOpts
=
append
(
fullOpts
,
opts
...
)
conn
,
err
:=
grpc
.
Dial
(
addr
,
fullOpts
...
)
conn
,
err
:=
grpc
.
NewClient
(
addr
,
fullOpts
...
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment