ipld-eth-server/vendor/github.com/libp2p/go-libp2p-quic-transport/stream.go

19 lines
280 B
Go

package libp2pquic
import (
smux "github.com/libp2p/go-stream-muxer"
quic "github.com/lucas-clemente/quic-go"
)
type stream struct {
quic.Stream
}
var _ smux.Stream = &stream{}
func (s *stream) Reset() error {
s.Stream.CancelRead(0)
s.Stream.CancelWrite(0)
return nil
}