fix: byte slice disappearance issue for key too

This commit is contained in:
Cassandra Heart 2023-09-26 01:25:16 -05:00
parent 836d449177
commit 9d4ffab29b
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -275,7 +275,9 @@ func extractFrameNumberAndFilterFromMasterFrameKey(
)
}
return binary.BigEndian.Uint64(key[2:10]), key[10:], nil
copied := make([]byte, len(key))
copy(copied, key)
return binary.BigEndian.Uint64(copied[2:10]), copied[10:], nil
}
func clockDataFrameKey(