MCPcopy Create free account
hub / github.com/openclaw/gogcli / logStaleNotification

Method logStaleNotification

internal/gmailwatch/processor.go:254–271  ·  view source on GitHub ↗
(historyID string)

Source from the content-addressed store, hash-verified

252}
253
254func (p *Processor) logStaleNotification(historyID string) {
255 if historyID == "" {
256 return
257 }
258
259 state := p.Repository.Get()
260
261 stale, err := IsStaleHistoryID(state.HistoryID, historyID)
262 if err != nil {
263 p.warnf("watch: history id compare failed: %v", err)
264
265 return
266 }
267
268 if stale {
269 p.logf("watch: ignoring stale push historyId=%s (stored=%s)", historyID, state.HistoryID)
270 }
271}
272
273func (p *Processor) sleepForFetch(ctx context.Context) error {
274 if p.Config.FetchDelay <= 0 {

Callers 1

HandleMethod · 0.95

Calls 4

warnfMethod · 0.95
logfMethod · 0.95
IsStaleHistoryIDFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected