mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix(monitor): remove unnecssary return type
This commit is contained in:
@@ -42,7 +42,7 @@ type (
|
|||||||
|
|
||||||
var ErrNegativeInterval = gperr.New("negative interval")
|
var ErrNegativeInterval = gperr.New("negative interval")
|
||||||
|
|
||||||
func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFunc HealthCheckFunc) *monitor {
|
func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFunc HealthCheckFunc) {
|
||||||
if state := config.WorkingState.Load(); state != nil {
|
if state := config.WorkingState.Load(); state != nil {
|
||||||
cfg.ApplyDefaults(state.Value().Defaults.HealthCheck)
|
cfg.ApplyDefaults(state.Value().Defaults.HealthCheck)
|
||||||
} else {
|
} else {
|
||||||
@@ -60,7 +60,6 @@ func (mon *monitor) init(u *url.URL, cfg types.HealthCheckConfig, healthCheckFun
|
|||||||
} else {
|
} else {
|
||||||
mon.url.Store(u)
|
mon.url.Store(u)
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mon *monitor) Context() context.Context {
|
func (mon *monitor) Context() context.Context {
|
||||||
|
|||||||
Reference in New Issue
Block a user