Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for sendUpdate (0.31 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
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 09:40:19 GMT 2024
    - 46.9K bytes
    - Viewed (0)
Back to top