mirror of
https://github.com/alice-lg/birdwatcher.git
synced 2025-03-09 00:00:05 +01:00
Fixed race condition between main() and InstallRateLimitReset().
This commit is contained in:
parent
27fe2969d7
commit
4ffebab2c4
1 changed files with 2 additions and 0 deletions
|
@ -156,7 +156,9 @@ func main() {
|
|||
// Configuration
|
||||
bird.ClientConf = birdConf
|
||||
bird.StatusConf = conf.Status
|
||||
bird.RateLimitConf.Lock()
|
||||
bird.RateLimitConf.Conf = conf.Ratelimit
|
||||
bird.RateLimitConf.Unlock()
|
||||
bird.ParserConf = conf.Parser
|
||||
endpoints.Conf = conf.Server
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue