Skip to content

Commit

Permalink
fixed javadocs and exported metrics to remove warning
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Aug 25, 2024
1 parent f9b69e2 commit 883969c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public interface BlockNodeAppInjectionModule {
/**
* Provides a block node context singleton.
*
* @param config should come from DI
* @param metricsService should come from DI
* @return a block node context singleton
*/
@Singleton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,28 @@
import dagger.Provides;
import javax.inject.Singleton;

/** The module used to inject the metrics service and metrics into the application. */
@Module
public interface MetricsInjectionModule {

/**
* Provides the metrics service.
*
* @param metrics the metrics to be used by the service
* @return the metrics service
*/
@Singleton
@Provides
static MetricsService provideMetricsService(Metrics metrics) {
return new MetricsService(metrics);

Check warning on line 39 in server/src/main/java/com/hedera/block/server/metrics/MetricsInjectionModule.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/com/hedera/block/server/metrics/MetricsInjectionModule.java#L39

Added line #L39 was not covered by tests
}

/**
* Provides the metrics.
*
* @param configuration the configuration to be used by the metrics
* @return the metrics
*/
@Singleton
@Provides
static Metrics provideMetrics(Configuration configuration) {
Expand Down
1 change: 1 addition & 0 deletions server/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
exports com.hedera.block.server.persistence.storage.remove;
exports com.hedera.block.server.config;
exports com.hedera.block.server.mediator;
exports com.hedera.block.server.metrics;
exports com.hedera.block.server.data;
exports com.hedera.block.server.health;

Expand Down

0 comments on commit 883969c

Please sign in to comment.