1
0
Fork 0
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:
Patrick Seeburger 2018-09-19 11:21:35 +02:00 committed by Benedikt Rudolph
parent 27fe2969d7
commit 4ffebab2c4

View file

@ -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