mirror of
https://github.com/corda/corda.git
synced 2025-01-24 13:28:07 +00:00
CORDA-1604 Node Info file watcher should block and load node info when node startup (#959) (#3333) (#3879)
(cherry picked from commit2fce979
) (cherry picked from commit072b4207e0
)
This commit is contained in:
parent
6d43a654ff
commit
205d3c3797
@ -78,7 +78,7 @@ class NodeInfoWatcher(private val nodePath: Path,
|
|||||||
* @return an [Observable] returning [NodeInfo]s, at most one [NodeInfo] is returned for each processed file.
|
* @return an [Observable] returning [NodeInfo]s, at most one [NodeInfo] is returned for each processed file.
|
||||||
*/
|
*/
|
||||||
fun nodeInfoUpdates(): Observable<NodeInfo> {
|
fun nodeInfoUpdates(): Observable<NodeInfo> {
|
||||||
return Observable.interval(pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
|
return Observable.interval(0, pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
|
||||||
.flatMapIterable { loadFromDirectory() }
|
.flatMapIterable { loadFromDirectory() }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user