1
0
mirror of https://github.com/fumiama/go-registry.git synced 2026-06-08 10:00:35 +08:00

fix: buffer copy

This commit is contained in:
源文雨
2022-03-07 14:14:39 +08:00
parent b6a85b186c
commit b11591d030

2
reg.go
View File

@@ -85,7 +85,7 @@ func (r *Regedit) Get(key string) (string, error) {
if err != nil {
return "", ErrDecAck
}
a := BytesToString(p.data)
a := string(p.data)
r.seq++
if a == "erro" {
return "", ErrInternalServer