MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / InitStreamLimit

Function InitStreamLimit

internal/bootstrap/stream_limit.go:49–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func InitStreamLimit() {
50 initLimiter(&stream.ClientDownloadLimit, conf.StreamMaxClientDownloadSpeed)
51 initLimiter(&stream.ClientUploadLimit, conf.StreamMaxClientUploadSpeed)
52 initLimiter(&stream.ServerDownloadLimit, conf.StreamMaxServerDownloadSpeed)
53 initLimiter(&stream.ServerUploadLimit, conf.StreamMaxServerUploadSpeed)
54}

Callers 1

InitFunction · 0.85

Calls 1

initLimiterFunction · 0.85

Tested by

no test coverage detected