Skip to content

Commit

Permalink
usm: kafka: Remove redundant const
Browse files Browse the repository at this point in the history
We had a duplication between telemetryMap and eBPFTelemetryMap
  • Loading branch information
guyarb committed Nov 17, 2024
1 parent dd3da58 commit 1d425d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/network/protocols/kafka/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const (
kafkaHeapMap = "kafka_heap"
inFlightMap = "kafka_in_flight"
responseMap = "kafka_response"
telemetryMap = "kafka_telemetry"

tlsFilterTailCall = "uprobe__kafka_tls_filter"

Expand Down Expand Up @@ -88,7 +87,7 @@ var Spec = &protocols.ProtocolSpec{
Name: "kafka_topic_name",
},
{
Name: telemetryMap,
Name: eBPFTelemetryMap,
},
{
Name: "kafka_batch_events",
Expand Down Expand Up @@ -312,7 +311,7 @@ func (p *protocol) DumpMaps(w io.Writer, mapName string, currentMap *ebpf.Map) {
for iter.Next(unsafe.Pointer(&key), unsafe.Pointer(&value)) {
spew.Fdump(w, key, value)
}
case telemetryMap:
case eBPFTelemetryMap:
var zeroKey uint32

var value RawKernelTelemetry
Expand Down

0 comments on commit 1d425d3

Please sign in to comment.