Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8cd1ac74
Commit
8cd1ac74
authored
Jun 11, 2021
by
Ethan Urie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add correlation interceptor to client
parent
e983e727
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
lib/gitlab/spamcheck/client.rb
lib/gitlab/spamcheck/client.rb
+5
-0
No files found.
lib/gitlab/spamcheck/client.rb
View file @
8cd1ac74
...
...
@@ -35,6 +35,7 @@ module Gitlab
end
@stub
=
::
Spamcheck
::
SpamcheckService
::
Stub
.
new
(
@endpoint_url
,
creds
,
interceptors:
interceptors
,
timeout:
DEFAULT_TIMEOUT_SECS
)
end
...
...
@@ -100,6 +101,10 @@ module Gitlab
Google
::
Protobuf
::
Timestamp
.
new
(
seconds:
ar_timestamp
.
to_time
.
to_i
,
nanos:
ar_timestamp
.
to_time
.
nsec
)
end
def
interceptors
[
Labkit
::
Correlation
::
GRPC
::
ClientInterceptor
.
instance
]
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment