Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signal-Server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GitHub Mirror
Signal
Signal-Server
Commits
cf2353bc
Commit
cf2353bc
authored
Oct 20, 2023
by
Chris Eager
Committed by
Chris Eager
Oct 20, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Remove InstrumentedExecutorService wrapping
parent
744eb580
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
service/src/main/java/org/whispersystems/textsecuregcm/push/ReceiptSender.java
+1
-8
1 addition, 8 deletions
.../org/whispersystems/textsecuregcm/push/ReceiptSender.java
with
1 addition
and
8 deletions
service/src/main/java/org/whispersystems/textsecuregcm/push/ReceiptSender.java
+
1
−
8
View file @
cf2353bc
...
...
@@ -5,8 +5,6 @@
package
org.whispersystems.textsecuregcm.push
;
import
com.codahale.metrics.InstrumentedExecutorService
;
import
com.codahale.metrics.SharedMetricRegistries
;
import
io.micrometer.core.instrument.Metrics
;
import
io.micrometer.core.instrument.binder.jvm.ExecutorServiceMetrics
;
import
java.util.concurrent.ExecutorService
;
...
...
@@ -18,7 +16,6 @@ import org.whispersystems.textsecuregcm.identity.ServiceIdentifier;
import
org.whispersystems.textsecuregcm.metrics.MetricsUtil
;
import
org.whispersystems.textsecuregcm.storage.AccountsManager
;
import
org.whispersystems.textsecuregcm.storage.Device
;
import
org.whispersystems.textsecuregcm.util.Constants
;
public
class
ReceiptSender
{
...
...
@@ -33,11 +30,7 @@ public class ReceiptSender {
this
.
accountManager
=
accountManager
;
this
.
messageSender
=
messageSender
;
this
.
executor
=
ExecutorServiceMetrics
.
monitor
(
Metrics
.
globalRegistry
,
new
InstrumentedExecutorService
(
executor
,
SharedMetricRegistries
.
getOrCreate
(
Constants
.
METRICS_NAME
),
MetricsUtil
.
name
(
ReceiptSender
.
class
,
"executor"
)),
MetricsUtil
.
name
(
ReceiptSender
.
class
,
"executor"
),
MetricsUtil
.
PREFIX
)
Metrics
.
globalRegistry
,
executor
,
MetricsUtil
.
name
(
ReceiptSender
.
class
,
"executor"
),
MetricsUtil
.
PREFIX
)
;
}
...
...
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