This commit is contained in:
Cory Schwartz 2022-06-07 10:36:57 -07:00
parent ea51732163
commit 84cc1e30fd

View File

@ -21,7 +21,7 @@ import (
type perConnLimiterKeyType string type perConnLimiterKeyType string
const perConnLimiterKey = "limiter" const perConnLimiterKey perConnLimiterKeyType = "limiter"
// Handler returns a gateway http.Handler, to be mounted as-is on the server. // Handler returns a gateway http.Handler, to be mounted as-is on the server.
func Handler(gwapi lapi.Gateway, api lapi.FullNode, rateLimit int64, connPerMinute int64, opts ...jsonrpc.ServerOption) (http.Handler, error) { func Handler(gwapi lapi.Gateway, api lapi.FullNode, rateLimit int64, connPerMinute int64, opts ...jsonrpc.ServerOption) (http.Handler, error) {