()
| 50 | } |
| 51 | |
| 52 | func (this *OCSPUpdateTask) Start() { |
| 53 | for range this.ticker.C { |
| 54 | err := this.Loop() |
| 55 | if err != nil { |
| 56 | if rpc.IsConnError(err) { |
| 57 | remotelogs.Debug("OCSPUpdateTask", "update ocsp failed: "+err.Error()) |
| 58 | } else { |
| 59 | remotelogs.Warn("OCSPUpdateTask", "update ocsp failed: "+err.Error()) |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func (this *OCSPUpdateTask) Loop() error { |
| 66 | rpcClient, err := rpc.SharedRPC() |
nothing calls this directly
no test coverage detected