MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SetRetentionSeconds

Function SetRetentionSeconds

internal/redisqueue/queue.go:55–63  ·  view source on GitHub ↗
(value int)

Source from the content-addressed store, hash-verified

53}
54
55func SetRetentionSeconds(value int) {
56 normalized := int64(value)
57 if normalized <= 0 {
58 normalized = defaultRetentionSeconds
59 } else if normalized > maxRetentionSeconds {
60 normalized = maxRetentionSeconds
61 }
62 retentionSeconds.Store(normalized)
63}
64
65func Enqueue(payload []byte) {
66 if !Enabled() {

Callers 2

UpdateClientsMethod · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected