MCPcopy Create free account
hub / github.com/GoCollaborate/src / AdaptLimiter

Function AdaptLimiter

utils/adapter.go:41–51  ·  view source on GitHub ↗

AdaptLimiter adapts the HTTP handler f to a limited handler that allows events up to rate lr and permits bursts of at most lb tokens.

(lim *rate.Limiter, f func(w http.ResponseWriter, r *http.Request))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

AdaptHTTPWithStatusFunction · 0.85

Tested by

no test coverage detected