Fix threadpoll for liboracle (#386)

This commit is contained in:
Nikolay G
2024-01-11 12:11:26 +00:00
committed by GitHub
parent a46d7879ad
commit a0aec9635b

View File

@@ -21,8 +21,8 @@ class LogsOracle(
db.SetUpstream(config.rpc) db.SetUpstream(config.rpc)
subscription = upstream.getHead().getFlux() subscription = upstream.getHead().getFlux()
.publishOn(scheduler)
.doOnError { t -> log.error("Failed to subscribe head for oracle", t) } .doOnError { t -> log.error("Failed to subscribe head for oracle", t) }
.subscribeOn(scheduler)
.subscribe { .subscribe {
log.info("update liboracle state: height=${it.height}") log.info("update liboracle state: height=${it.height}")
db.UpdateHeight(it.height) db.UpdateHeight(it.height)
@@ -55,6 +55,6 @@ class LogsOracle(
} }
} }
} }
.subscribeOn(scheduler) .publishOn(scheduler)
} }
} }