Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sendUpdate (0.12 sec)

  1. cmd/data-scanner.go

    	s.newCache.Info.LastUpdate = UTCNow()
    	s.newCache.Info.NextCycle = cache.Info.NextCycle
    	return s.newCache, nil
    }
    
    // sendUpdate() should be called on a regular basis when the newCache contains more recent total than previously.
    // May or may not send an update upstream.
    func (f *folderScanner) sendUpdate() {
    	// Send at most an update every minute.
    	if f.updates == nil || time.Since(f.lastUpdate) < time.Minute {
    		return
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 21:10:34 UTC 2024
    - 48.4K bytes
    - Viewed (0)
Back to top