mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-20 10:35:01 +00:00
chore(deps): update edgevpn (#3214)
* chore(deps): update edgevpn Signed-off-by: Ettore Di Giacinto <mudler@localai.io> * fix: initialize failure map Signed-off-by: Ettore Di Giacinto <mudler@localai.io> --------- Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
parent
9f61ac8acc
commit
c4534cd908
3 changed files with 67 additions and 18 deletions
|
@ -15,10 +15,10 @@ import (
|
|||
|
||||
type DiscoveryServer struct {
|
||||
sync.Mutex
|
||||
database *Database
|
||||
networkState *NetworkState
|
||||
connectionTime time.Duration
|
||||
failures map[string]int
|
||||
database *Database
|
||||
networkState *NetworkState
|
||||
connectionTime time.Duration
|
||||
failures map[string]int
|
||||
errorThreshold int
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,7 @@ func NewDiscoveryServer(db *Database, dur time.Duration, failureThreshold int) *
|
|||
Networks: map[string]Network{},
|
||||
},
|
||||
errorThreshold: failureThreshold,
|
||||
failures: make(map[string]int),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue