mirror of
https://github.com/lightninglabs/aperture.git
synced 2026-01-26 04:34:24 +01:00
Merge pull request #63 from ellemouton/disableWebsocketPings
aperture: disable websocket proxy pings for hashmail server
This commit is contained in:
@@ -689,8 +689,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
|
||||
// collector will export latency metrics for the histogram.
|
||||
grpc_prometheus.EnableHandlingTimeHistogram()
|
||||
|
||||
var serverOpts []grpc.ServerOption
|
||||
serverOpts = []grpc.ServerOption{
|
||||
serverOpts := []grpc.ServerOption{
|
||||
grpc.ChainUnaryInterceptor(
|
||||
grpc_prometheus.UnaryServerInterceptor,
|
||||
),
|
||||
@@ -750,8 +749,7 @@ func createHashMailServer(cfg *Config) ([]proxy.LocalService, func(), error) {
|
||||
|
||||
// Wrap the default grpc-gateway handler with the WebSocket handler.
|
||||
restHandler := lnrpc.NewWebSocketProxy(
|
||||
mux, log, time.Second*30, time.Second*5,
|
||||
clientStreamingURIs,
|
||||
mux, log, 0, 0, clientStreamingURIs,
|
||||
)
|
||||
|
||||
// Create our proxy chain now. A request will pass
|
||||
|
||||
Reference in New Issue
Block a user