Skip to content
Snippets Groups Projects
Commit f71c88bb authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

made tracker use getUpdateID

parent d5e4a9e9
No related branches found
No related tags found
No related merge requests found
...@@ -60,14 +60,8 @@ func track(session *storage.Session, instance *network.Instance, ourId *id.ID, s ...@@ -60,14 +60,8 @@ func track(session *storage.Session, instance *network.Instance, ourId *id.ID, s
for true { for true {
now := time.Now() now := time.Now()
// Pull out the round information
ri, err := instance.GetRound(instance.GetLastRoundID())
if err != nil {
globals.Log.FATAL.Panicf("Could not pull round information: %v", err)
}
// Generates the IDs since the last track // Generates the IDs since the last track
protoIds, err := ephemeral.GetIdsByRange(ourId, uint(ri.AddressSpaceSize), protoIds, err := ephemeral.GetIdsByRange(ourId, session.Reception().GetIDSize(),
now.UnixNano(), now.Sub(lastCheck)) now.UnixNano(), now.Sub(lastCheck))
if err != nil { if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment