Skip to content

Commit

Permalink
fix protocol analyzer not added to the connection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Nov 19, 2024
1 parent 656265f commit 2bd4208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/accesslog/collector/protocols/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func newPartitionConnection(protocolMgr *ProtocolManager, conID, randomID uint64
}

func (p *PartitionConnection) appendProtocolIfNeed(protocolMgr *ProtocolManager, conID, randomID uint64, protocol enums.ConnectionProtocol) {
if _, exist := protocolMgr.protocols[protocol]; !exist {
if _, exist := p.protocol[protocol]; !exist {
analyzer := protocolMgr.GetProtocol(protocol)
p.protocol[protocol] = true
p.protocolAnalyzer[protocol] = analyzer
Expand Down

0 comments on commit 2bd4208

Please sign in to comment.