don't use closures for passing OnLost and OnAcked STREAM frame callbacks (#3833)

This commit is contained in:
Marten Seemann
2023-06-02 14:14:04 +03:00
committed by GitHub
parent ad79149738
commit f8d24ef1e9
14 changed files with 327 additions and 250 deletions

View File

@@ -27,3 +27,11 @@ func putFrame(f *Frame) {
f.OnAcked = nil
framePool.Put(f)
}
type StreamFrame struct {
Frame *wire.StreamFrame
Handler interface {
OnLost(*wire.StreamFrame)
OnAcked(*wire.StreamFrame)
}
}