mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
swarm/network/stream: Simplify code (#303)
This commit is contained in:
parent
cdca257402
commit
5c57cbaebc
1 changed files with 1 additions and 5 deletions
|
|
@ -71,11 +71,7 @@ type RequestSubscriptionMsg struct {
|
|||
|
||||
func (p *Peer) handleRequestSubscription(req *RequestSubscriptionMsg) (err error) {
|
||||
log.Debug(fmt.Sprintf("handleRequestSubscription: streamer %s to subscribe to %s with stream %s", p.streamer.addr.ID(), p.ID(), req.Stream))
|
||||
err = p.streamer.Subscribe(p.ID(), req.Stream, req.History, req.Priority)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return p.streamer.Subscribe(p.ID(), req.Stream, req.History, req.Priority)
|
||||
}
|
||||
|
||||
func (p *Peer) handleSubscribeMsg(req *SubscribeMsg) (err error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue