// countFail mutates the recent failures count by
// delta. It returns an error if the adjustment fails.
countFail mutates the recent failures count by
delta. It returns an error if the adjustment fails.
// countFail mutates the recent failures count by // delta . It returns an error if the adjustment fails .
func (p *peer) countFail(delta int) error {
	result := atomic.AddInt32(&p.fails, int32(delta))
	if result < 0 {
		return fmt.Errorf("count below 0: %d", result)
	}
	return nil
}
func ( p * peer ) countFail ( delta int ) error { result := atomic . AddInt32 ( & p . fails , int32 ( delta ) ) if result < 0 { return fmt . Errorf ( " " , result ) } return nil }
countFail mutates the recent failures count by
delta.
countFail mutates the recent failures count by delta .