Skip to content

Commit b225467

Browse files
committed
delete withoutPath(topicDefaults) for EventConfig
1 parent 16494de commit b225467

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

common/src/main/java/org/tron/core/config/args/EventConfig.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public static EventConfig fromConfig(Config config) {
8484

8585
String nativeKey = "native";
8686
String topicsKey = "topics";
87-
Config bindable = section.withoutPath(nativeKey).withoutPath(topicsKey)
88-
.withoutPath("topicDefaults");
87+
// remove two keys to construct EventConfig because they cannot be bind automatically,
88+
// we can bind them manually later
89+
Config bindable = section.withoutPath(nativeKey).withoutPath(topicsKey);
8990
EventConfig ec = ConfigBeanFactory.create(bindable, EventConfig.class);
9091

9192
// "native" sub-section: bind via ConfigBeanFactory when present, use defaults otherwise

0 commit comments

Comments
 (0)