Skip to content

Commit

Permalink
Merge pull request #169 from GrappigPanda/issue-165
Browse files Browse the repository at this point in the history
Fixes #165
  • Loading branch information
Ianleeclark authored Dec 10, 2016
2 parents 79c2519 + 4830edd commit 0829a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/impl/mysqlStore.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ func (m *MySQLStore) HandlePeerUpdates() chan db.PeerTrackerDelta {
peerUpdatesChan := make(chan db.PeerTrackerDelta)

go func() {
select {
case update := <-peerUpdatesChan:
for {
update := <-peerUpdatesChan
switch update.Event {
case db.PEERUPDATE:
m.UpdatePeerStats(update.Uploaded, update.Downloaded, update.IP)
Expand Down

0 comments on commit 0829a7a

Please sign in to comment.