MCPcopy
hub / github.com/fatedier/frp / statusNormalCallback

Method statusNormalCallback

client/proxy/proxy_wrapper.go:241–251  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

239}
240
241func (pw *Wrapper) statusNormalCallback() {
242 xl := pw.xl
243 atomic.StoreUint32(&pw.health, 0)
244 _ = errors.PanicToError(func() {
245 select {
246 case pw.healthNotifyCh <- struct{}{}:
247 default:
248 }
249 })
250 xl.Infof("health check success")
251}
252
253func (pw *Wrapper) statusFailedCallback() {
254 xl := pw.xl

Callers

nothing calls this directly

Calls 1

InfofMethod · 0.80

Tested by

no test coverage detected