Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
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-workhorse
Commits
ccfb11b3
Commit
ccfb11b3
authored
May 05, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Group metric update calls
parent
b37097c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
internal/senddata/senddata.go
internal/senddata/senddata.go
+1
-1
No files found.
internal/senddata/senddata.go
View file @
ccfb11b3
...
@@ -88,10 +88,10 @@ func (s *sendDataResponseWriter) tryInject() bool {
...
@@ -88,10 +88,10 @@ func (s *sendDataResponseWriter) tryInject() bool {
for
_
,
injecter
:=
range
s
.
injecters
{
for
_
,
injecter
:=
range
s
.
injecters
{
if
injecter
.
Match
(
header
)
{
if
injecter
.
Match
(
header
)
{
s
.
hijacked
=
true
s
.
hijacked
=
true
sendDataResponses
.
WithLabelValues
(
injecter
.
Name
())
.
Inc
()
helper
.
DisableResponseBuffering
(
s
.
rw
)
helper
.
DisableResponseBuffering
(
s
.
rw
)
crw
:=
helper
.
NewCountingResponseWriter
(
s
.
rw
)
crw
:=
helper
.
NewCountingResponseWriter
(
s
.
rw
)
injecter
.
Inject
(
crw
,
s
.
req
,
header
)
injecter
.
Inject
(
crw
,
s
.
req
,
header
)
sendDataResponses
.
WithLabelValues
(
injecter
.
Name
())
.
Inc
()
sendDataResponseBytes
.
WithLabelValues
(
injecter
.
Name
())
.
Add
(
float64
(
crw
.
Count
()))
sendDataResponseBytes
.
WithLabelValues
(
injecter
.
Name
())
.
Add
(
float64
(
crw
.
Count
()))
return
true
return
true
}
}
...
...
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