func (w *apiWatcher) handler() transaction.HTTPCompletionHandler {
	return func(_ *transaction.HTTPTransaction, statusCode int, _ []byte, err error) {
		if err == nil && statusCode >= 200 && statusCode < 300 {
			atomic.StoreInt64(&w.apiState, apiReachable)
		}
	}
}
// handler is meant to be passed to the `forwarder` instance responsible for flushing the data
handler is meant to be passed to the `forwarder` instance responsible for flushing the data
// handler is meant to be passed to the ` forwarder ` instance responsible for flushing the data
func (w *apiWatcher) handler() transaction.HTTPCompletionHandler {
	return func(_ *transaction.HTTPTransaction, statusCode int, _ []byte, err error) {
		if err == nil && statusCode >= 200 && statusCode < 300 {
			atomic.StoreInt64(&w.apiState, apiReachable)
		}
	}
}
func ( w * apiWatcher ) handler ( ) transaction . HTTPCompletionHandler { return func ( _ * transaction . HTTPTransaction , statusCode int , _ [ ] byte , err error ) { if err == nil && statusCode >= 200 && statusCode < 300 { atomic . StoreInt64 ( & w . apiState , apiReachable ) } } }
handler is meant to be passed to the `forwarder` instance responsible for flushing the data
handler is meant to be passed to the ` forwarder ` instance responsible for flushing the data