Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
semyonoskin committed Nov 18, 2020
1 parent 597ef47 commit 8bfe585
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/scala/scorex/core/network/SyncTracker.scala
Expand Up @@ -38,7 +38,9 @@ class SyncTracker(nvsRef: ActorRef,
schedule foreach {
_.cancel()
}
schedule = Some(context.system.scheduler.scheduleWithFixedDelay(2.seconds, minInterval(),nvsRef, SendLocalSyncInfo))

val syncTask = context.system.scheduler.scheduleWithFixedDelay(2.seconds, minInterval(),nvsRef, SendLocalSyncInfo)
schedule = Some(syncTask)
}

def maxInterval(): FiniteDuration =
Expand Down

0 comments on commit 8bfe585

Please sign in to comment.