Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Nov 19, 2024
1 parent 07ac385 commit 278b022
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ void remoteToLocal_tooManyBytes() throws Exception {
// Add files whose total size exceeds the allowed maximum.
long remainder = MAX_NUM_BYTES + 1;
final int defaultFileSize = (int) (MAX_NUM_BYTES / MAX_NUM_FILES * 2);
for (int i = 0; ; i++) {
for (int i = 0;; i++) {
final int fileSize;
if (remainder > defaultFileSize) {
remainder -= defaultFileSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@ void shouldNotRunMirrorTaskForUnknownZone() throws Exception {
});
}

private static List<String> testZone() {
final ArrayList<String> zones = new ArrayList<>(ZONES);
// Add a null zone to test the default zone.
zones.add(null);
return zones;
}

private static void createMirror(String zone) throws Exception {
final BlockingWebClient client = WebClient.builder("http://127.0.0.1:" + serverPort)
.auth(AuthToken.ofOAuth2(accessToken))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ static Map<PluginTarget, PluginGroup> loadPlugins(ClassLoader classLoader, Centr
.collect(toImmutableMap(Entry::getKey, e -> {
final PluginTarget target = e.getKey();
final List<Plugin> targetPlugins = e.getValue();
final String poolName = "plugins-for-" + target.name().toLowerCase().replace("_",
"-");
final String poolName =
"plugins-for-" + target.name().toLowerCase().replace("_", "-");
return new PluginGroup(targetPlugins,
Executors.newSingleThreadExecutor(
new DefaultThreadFactory(poolName, true)));
Expand Down
2 changes: 1 addition & 1 deletion site/src/sphinx/setup-configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ Core properties

- the list of zone names.

- The current zone name must be included in the list of zone names.
- the current zone name must be included in the list of zone names.

.. _replication:

Expand Down

0 comments on commit 278b022

Please sign in to comment.