Developing lightweight computation at the DSG edge

Commit 9ba3f14e authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[monitor-assign] Remove periodical updates of the global assignation list



Instead, only update it before using it.
Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 0416aa39
......@@ -136,9 +136,6 @@ func initializeTimers() {
// Initialize cnmlDevices checksum changes check timer
startcnmlDevicesChecksumTimer()
// Initialize the local assignation check timer
startGlobalAssignTimer()
// Initialize cnmlDevices checksum changes check timer
startLocalAssignTimer()
}
......@@ -577,15 +574,6 @@ func startcnmlDevicesChecksumTimer() {
}()
}
func startGlobalAssignTimer() {
globalAssignTicker := time.NewTicker(time.Duration(globalAssignCheckInterval) * time.Second)
go func() {
for range globalAssignTicker.C {
updateGlobalAssignationList()
}
}()
}
func startLocalAssignTimer() {
localAssignTicker := time.NewTicker(time.Duration(reassignInterval) * time.Second)
go func() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment