mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
lib/storage: typo fix in MetricName.Unmarshal error
This commit is contained in:
parent
1ec4dfd678
commit
b4489028f3
@ -404,7 +404,7 @@ func (mn *MetricName) UnmarshalString(s string) error {
|
||||
// Unmarshal unmarshals mn from src.
|
||||
func (mn *MetricName) Unmarshal(src []byte) error {
|
||||
if len(src) < 8 {
|
||||
return fmt.Errorf("too short src: %d bytes; must be at least % bytes", len(src), 8)
|
||||
return fmt.Errorf("too short src: %d bytes; must be at least 8 bytes", len(src))
|
||||
}
|
||||
mn.AccountID = encoding.UnmarshalUint32(src)
|
||||
mn.ProjectID = encoding.UnmarshalUint32(src[4:])
|
||||
|
Loading…
Reference in New Issue
Block a user