@cryptotaxi247 / kubo / commits / f8cdd96c2

Clarify offlineApi argument

Ian Davis committed Jul 21, 2022 at 15:14 UTC f8cdd96c2a85bc0ccaad70f9a0f26c85e728566a
1 file changed +1
core/corehttp/gateway_handler.go
+1
@@ -213,6 +213,7 @@ func newGatewayHistogramMetric(name string, help string) *prometheus.HistogramVe
213 }
214
215 // NewGatewayHandler returns an http.Handler that can act as a gateway to IPFS content
216 +// offlineApi is a version of the API that should not make network requests for missing data
217 func NewGatewayHandler(c GatewayConfig, api NodeAPI, offlineApi NodeAPI) http.Handler {
218 return newGatewayHandler(c, api, offlineApi)
219 }