func (s *StopPolicy) AddErrorCount(x int) {
	s.SyncObject.Lock()
	defer s.SyncObject.Unlock()
	s.errorCount += x
}
// AddErrorCount increments the error count by the set amount
AddErrorCount increments the error count by the set amount
// AddErrorCount increments the error count by the set amount
func (s *StopPolicy) AddErrorCount(x int) {
	s.SyncObject.Lock()
	defer s.SyncObject.Unlock()
	s.errorCount += x
}
func ( s * StopPolicy ) AddErrorCount ( x int ) { s . SyncObject . Lock ( ) defer s . SyncObject . Unlock ( ) s . errorCount += x }
AddErrorCount increments the error count by the set amount
AddErrorCount increments the error count by the set amount