MCPcopy Create free account
hub / github.com/coder/coder / Flush

Method Flush

codersdk/agentsdk/logs.go:345–355  ·  view source on GitHub ↗
(src uuid.UUID)

Source from the content-addressed store, hash-verified

343}
344
345func (l *LogSender) Flush(src uuid.UUID) {
346 l.L.Lock()
347 defer l.L.Unlock()
348 defer l.Broadcast()
349 q, ok := l.queues[src]
350 if ok {
351 q.flushRequested = true
352 }
353 // queue might not exist because it's already been flushed and removed from
354 // the map.
355}
356
357var ErrLogLimitExceeded = xerrors.New("Log limit exceeded")
358

Callers 1

TestLogSender_MainlineFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 1

TestLogSender_MainlineFunction · 0.76