mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-30 16:58:28 +00:00
38caf8e5b7
* Initial QUIC work * Update Yggdrasil demo * Make sure that the federation sender knows how many pending events are in the database when the worker starts * QUIC tunables * pprof * Don't spin * Set build info for Yggdrasil
20 lines
290 B
Go
20 lines
290 B
Go
package yggconn
|
|
|
|
import (
|
|
"net"
|
|
|
|
"github.com/lucas-clemente/quic-go"
|
|
)
|
|
|
|
type QUICStream struct {
|
|
quic.Stream
|
|
session quic.Session
|
|
}
|
|
|
|
func (s QUICStream) LocalAddr() net.Addr {
|
|
return s.session.LocalAddr()
|
|
}
|
|
|
|
func (s QUICStream) RemoteAddr() net.Addr {
|
|
return s.session.RemoteAddr()
|
|
}
|