Commit 448231d7 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2c040f4b
...@@ -150,8 +150,7 @@ func (m *Master) Run(ctx context.Context, l xnet.Listener) (err error) { ...@@ -150,8 +150,7 @@ func (m *Master) Run(ctx context.Context, l xnet.Listener) (err error) {
m.node.NodeTab.Update(m.node.MyInfo) m.node.NodeTab.Update(m.node.MyInfo)
// wrap listener with link / identificaton hello checker // wrap listener with link / identificaton hello checker
ll := neonet.NewLinkListener(l) lli := xneo.NewListener(neonet.NewLinkListener(l))
lli := xneo.NewListener(ll)
// accept incoming connections and pass them to main driver // accept incoming connections and pass them to main driver
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
......
...@@ -96,8 +96,7 @@ func (stor *Storage) Run(ctx context.Context, l xnet.Listener) (err error) { ...@@ -96,8 +96,7 @@ func (stor *Storage) Run(ctx context.Context, l xnet.Listener) (err error) {
stor.node.MyInfo.Addr = naddr stor.node.MyInfo.Addr = naddr
// wrap listener with link / identificaton hello checker // wrap listener with link / identificaton hello checker
ll := neonet.NewLinkListener(l) lli := xneo.NewListener(neonet.NewLinkListener(l))
lli := xneo.NewListener(ll)
// start serving incoming connections // start serving incoming connections
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
......
...@@ -188,7 +188,7 @@ func (l *listener) Accept(ctx context.Context) (_ *neonet.Request, _ *proto.Requ ...@@ -188,7 +188,7 @@ func (l *listener) Accept(ctx context.Context) (_ *neonet.Request, _ *proto.Requ
// identify peer // identify peer
// the first conn must come with RequestIdentification packet // the first conn must come with RequestIdentification packet
defer xerr.Context(&err, "identify") // XXX -> task.ErrContext? defer xerr.Context(&err, "identify") // XXX -> task.ErrContext?
req, err := link.Recv1(/*ctx*/) req, err := link.Recv1(/*XXX ctx*/)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment