Skip to content

Commit

Permalink
style fixes and removal of comment and log
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 14, 2024
1 parent 9fd4a32 commit bd13246
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class LiveStreamMediatorImpl
// Initialize and start the disruptor
@NonNull
final Disruptor<ObjectEvent<SubscribeStreamResponse>> disruptor =
// TODO: replace ring buffer size with a configurable value
// TODO: replace ring buffer size with a configurable value, create a MediatorConfig
new Disruptor<>(ObjectEvent::new, 1024, DaemonThreadFactory.INSTANCE);
this.ringBuffer = disruptor.start();
this.executor = Executors.newCachedThreadPool(DaemonThreadFactory.INSTANCE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,6 @@ class BlockAsDirWriter implements BlockWriter<BlockItem> {
blockNodeContext.configuration().getConfigData(PersistenceStorageConfig.class);
final Path blockNodeRootPath = Path.of(config.rootPath());

// TODO: Remove comment but, Ask matt why we are logging the config?
// LOGGER.log(System.Logger.Level.INFO, config.toString());
LOGGER.log(System.Logger.Level.INFO, "Block Node Root Path: " + blockNodeRootPath);

this.blockNodeRootPath = blockNodeRootPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void testPersistenceStorageConfig_emptyRootPath() throws IOException {
}

public static void deleteDirectory(Path path) throws IOException {
if(!Files.exists(path)) {
if (!Files.exists(path)) {
return;
}
try (Stream<Path> walk = Files.walk(path)) {
Expand Down

0 comments on commit bd13246

Please sign in to comment.