Fetch resources list in parallel

This commit is contained in:
Ingo Oppermann
2022-08-16 16:09:46 +03:00
parent 50164ea78e
commit 16ada6225b
3 changed files with 99 additions and 41 deletions

View File

@@ -45,10 +45,10 @@ type ClusterConfig struct {
}
type cluster struct {
nodes map[string]*node
idfiles map[string][]string
idupdate map[string]time.Time
fileid map[string]string
nodes map[string]*node // List of known nodes
idfiles map[string][]string // Map from nodeid to list of files
idupdate map[string]time.Time // Map from nodeid to time of last update
fileid map[string]string // Map from file name to nodeid
limiter net.IPLimiter