Commit 9c602914 authored by Sebastian Stammler's avatar Sebastian Stammler

op-node: ChannelOut.Reset: simplify logic

parent ccc01893
...@@ -64,10 +64,7 @@ func (co *ChannelOut) Reset() error { ...@@ -64,10 +64,7 @@ func (co *ChannelOut) Reset() error {
co.compress.Reset(&co.buf) co.compress.Reset(&co.buf)
co.closed = false co.closed = false
_, err := rand.Read(co.id[:]) _, err := rand.Read(co.id[:])
if err != nil { return err
return err
}
return nil
} }
// AddBlock adds a block to the channel. It returns the RLP encoded byte size // AddBlock adds a block to the channel. It returns the RLP encoded byte size
......
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