CORDA-1604 Node Info file watcher should block and load node info when node startup (#959) (#3333)

(cherry picked from commit 2fce979)
This commit is contained in:
Patrick Kuo 2018-06-08 18:39:46 +01:00 committed by josecoll
parent 003684b7fb
commit 072b4207e0

View File

@ -83,7 +83,7 @@ class NodeInfoWatcher(private val nodePath: Path,
* @return an [Observable] returning [NodeInfoUpdate]s, at most one [NodeInfo] is returned for each processed file.
*/
fun nodeInfoUpdates(): Observable<NodeInfoUpdate> {
return Observable.interval(pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
return Observable.interval(0, pollInterval.toMillis(), TimeUnit.MILLISECONDS, scheduler)
.flatMapIterable { loadFromDirectory() }
}