Skip to content

Commit

Permalink
fix gobgp update goroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
Motok1 committed Feb 4, 2023
1 parent 86c2c81 commit b0b15ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/polad/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ func main() {
logger.Info("Request TED update", zap.String("source", "GoBGP"), zap.String("session", c.Global.Gobgp.GrpcClient.Address+":"+c.Global.Gobgp.GrpcClient.Port))
if err != nil {
logger.Info("Failed session with GoBGP", zap.Error(err))
continue
} else {
tedElemsChan <- tedElems
}
tedElemsChan <- tedElems
time.Sleep(TED_UPDATE_INTERVAL * time.Minute)
}

Expand Down

0 comments on commit b0b15ed

Please sign in to comment.