Skip to content

Commit

Permalink
remove logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ranlavanet committed Oct 13, 2024
1 parent 81fae28 commit e3e7437
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion protocol/chainlib/jsonRPC.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,6 @@ func (apil *JsonRPCChainListener) Serve(ctx context.Context, cmdFlags common.Con
ipForwarded = ""
}
ip := websocketConn.RemoteAddr().String()
utils.LavaFormatDebug("ipForwarded:" + ipForwarded + " ip: " + ip)
key := apil.websocketConnectionLimiter.getKey(ip, ipForwarded)
numberOfActiveConnections := apil.websocketConnectionLimiter.addIpConnectionAndGetCurrentAmount(key)
defer apil.websocketConnectionLimiter.decreaseIpConnectionAndGetCurrentAmount(key)
Expand Down
6 changes: 0 additions & 6 deletions protocol/chainlib/tendermintRPC.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,12 +397,6 @@ func (apil *TendermintRpcChainListener) Serve(ctx context.Context, cmdFlags comm
key := apil.websocketConnectionLimiter.getKey(ip, ipForwarded)
numberOfActiveConnections := apil.websocketConnectionLimiter.addIpConnectionAndGetCurrentAmount(key)
defer apil.websocketConnectionLimiter.decreaseIpConnectionAndGetCurrentAmount(key)
utils.LavaFormatDebug("ipForwarded:"+ipForwarded+" ip: "+ip,
utils.LogAttr("key", key),
utils.LogAttr("apil.websocketConnectionLimiter.ipToNumberOfActiveConnections", apil.websocketConnectionLimiter.ipToNumberOfActiveConnections),
utils.LogAttr("numberOfActiveConnections", numberOfActiveConnections),
utils.LogAttr("MaximumNumberOfParallelWebsocketConnectionsPerIp", MaximumNumberOfParallelWebsocketConnectionsPerIp),
)
if numberOfActiveConnections > MaximumNumberOfParallelWebsocketConnectionsPerIp {
websocketConn.WriteMessage(1, []byte(fmt.Sprintf("Too Many Open Connections, limited to %d", MaximumNumberOfParallelWebsocketConnectionsPerIp)))
return
Expand Down

0 comments on commit e3e7437

Please sign in to comment.