Fix subtype -> stype in lineprotocol.go

This commit is contained in:
Thomas Gruber 2025-05-08 18:01:02 +02:00 committed by GitHub
parent 2332c13a9f
commit 28fd7edc89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -254,8 +254,8 @@ func decodeLine(dec *lineprotocol.Decoder,
} }
case "type-id": case "type-id":
typeBuf = append(typeBuf, val...) typeBuf = append(typeBuf, val...)
case "subtype": case "stype":
// We cannot be sure that the "subtype" tag comes before the "stype-id" tag: // We cannot be sure that the "stype" tag comes before the "stype-id" tag:
if len(subTypeBuf) == 0 { if len(subTypeBuf) == 0 {
subTypeBuf = append(subTypeBuf, val...) subTypeBuf = append(subTypeBuf, val...)
} else { } else {