Fix typo on previous commit.

The peer and error were reversed for the regression test error message
case.

Spotted by @dajohi.
This commit is contained in:
Dave Collins 2014-02-28 10:55:00 -06:00
parent 29b790b9c8
commit ce2f68a982

View file

@ -1086,7 +1086,7 @@ out:
// allowed errors.
if cfg.RegressionTest && p.isAllowedByRegression(err) {
peerLog.Errorf("Allowed regression test "+
"error from %s: %v", err, p.addr)
"error from %s: %v", p.addr, err)
idleTimer.Reset(idleTimeoutMinutes * time.Minute)
continue
}