forked from cerc-io/ipld-eth-server
19 lines
280 B
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
|
|
}
|