Skip to content

Commit

Permalink
Fix upstream check
Browse files Browse the repository at this point in the history
  • Loading branch information
sammy007 committed Oct 16, 2015
1 parent 06a33e9 commit 0307db1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ func NewEndpoint(cfg *Config) *ProxyServer {
case <-refreshTimer.C:
proxy.fetchBlockTemplate()
refreshTimer.Reset(refreshIntv)
}
}
}()

go func() {
for {
select {
case <-checkTimer.C:
proxy.checkUpstreams()
checkTimer.Reset(checkIntv)
Expand Down

0 comments on commit 0307db1

Please sign in to comment.