rename frame.Write to frame.Append

This commit is contained in:
Marten Seemann 2022-08-28 23:13:19 +03:00
parent 3ca1001951
commit ab6d664b43
50 changed files with 112 additions and 112 deletions

View file

@ -252,7 +252,7 @@ func getFrames() []wire.Frame {
func main() {
for _, f := range getFrames() {
b, err := f.Write(nil, version)
b, err := f.Append(nil, version)
if err != nil {
log.Fatal(err)
}
@ -271,7 +271,7 @@ func main() {
}
f := frames[rand.Intn(len(frames))]
var err error
b, err = f.Write(b, version)
b, err = f.Append(b, version)
if err != nil {
log.Fatal(err)
}

View file

@ -69,7 +69,7 @@ func Fuzz(data []byte) int {
}
}
lenBefore := len(b)
b, err := f.Write(b, version)
b, err := f.Append(b, version)
if err != nil {
panic(fmt.Sprintf("Error writing frame %#v: %s", f, err))
}