lib/streamaggr: properly return output key from getOutputKey

The bug has been introduced in cc2647d212
This commit is contained in:
Aliaksandr Valialkin 2024-05-14 17:47:19 +02:00
parent b0c1f3d819
commit b617dc9c0b
No known key found for this signature in database
GPG key ID: 52C003EE2BCDB9EB

View file

@ -871,6 +871,7 @@ func getOutputKey(key string) string {
if nSize <= 0 {
logger.Panicf("BUG: cannot unmarshal inputKeyLen from uvarint")
}
src = src[nSize:]
outputKey := src[inputKeyLen:]
return bytesutil.ToUnsafeString(outputKey)
}