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
6fd1c841
Commit
6fd1c841
authored
Oct 4, 2023
by
Jon Chambers
Committed by
Jon Chambers
Oct 19, 2023
Browse files
Options
Downloads
Patches
Plain Diff
Make command namespace available to subclasses
parent
0100f0fc
No related branches found
No related tags found
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/workers/AbstractSinglePassCrawlAccountsCommand.java
+8
-3
8 additions, 3 deletions
...regcm/workers/AbstractSinglePassCrawlAccountsCommand.java
with
8 additions
and
3 deletions
service/src/main/java/org/whispersystems/textsecuregcm/workers/AbstractSinglePassCrawlAccountsCommand.java
+
8
−
3
View file @
6fd1c841
...
@@ -24,6 +24,7 @@ import reactor.core.scheduler.Schedulers;
...
@@ -24,6 +24,7 @@ import reactor.core.scheduler.Schedulers;
public
abstract
class
AbstractSinglePassCrawlAccountsCommand
extends
EnvironmentCommand
<
WhisperServerConfiguration
>
{
public
abstract
class
AbstractSinglePassCrawlAccountsCommand
extends
EnvironmentCommand
<
WhisperServerConfiguration
>
{
private
CommandDependencies
commandDependencies
;
private
CommandDependencies
commandDependencies
;
private
Namespace
namespace
;
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
private
final
Logger
logger
=
LoggerFactory
.
getLogger
(
getClass
());
...
@@ -53,14 +54,19 @@ public abstract class AbstractSinglePassCrawlAccountsCommand extends Environment
...
@@ -53,14 +54,19 @@ public abstract class AbstractSinglePassCrawlAccountsCommand extends Environment
return
commandDependencies
;
return
commandDependencies
;
}
}
protected
Namespace
getNamespace
()
{
return
namespace
;
}
@Override
@Override
protected
void
run
(
final
Environment
environment
,
final
Namespace
namespace
,
protected
void
run
(
final
Environment
environment
,
final
Namespace
namespace
,
final
WhisperServerConfiguration
configuration
)
throws
Exception
{
final
WhisperServerConfiguration
configuration
)
throws
Exception
{
UncaughtExceptionHandler
.
register
();
UncaughtExceptionHandler
.
register
();
MetricsUtil
.
configureRegistries
(
configuration
,
environment
);
MetricsUtil
.
configureRegistries
(
configuration
,
environment
);
commandDependencies
=
CommandDependencies
.
build
(
getName
(),
environment
,
configuration
);
this
.
namespace
=
namespace
;
this
.
commandDependencies
=
CommandDependencies
.
build
(
getName
(),
environment
,
configuration
);
final
int
segments
=
Objects
.
requireNonNull
(
namespace
.
getInt
(
SEGMENT_COUNT
));
final
int
segments
=
Objects
.
requireNonNull
(
namespace
.
getInt
(
SEGMENT_COUNT
));
...
@@ -75,7 +81,6 @@ public abstract class AbstractSinglePassCrawlAccountsCommand extends Environment
...
@@ -75,7 +81,6 @@ public abstract class AbstractSinglePassCrawlAccountsCommand extends Environment
}
finally
{
}
finally
{
commandStopListener
.
stop
();
commandStopListener
.
stop
();
}
}
}
}
@Override
@Override
...
...
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