Skip to content

Commit

Permalink
transport: Remove double Release call from test
Browse files Browse the repository at this point in the history
In the future, it would be ideal if wrongful Release() calls could be
flagged (either through an error or panic).
  • Loading branch information
matheusd committed Aug 15, 2024
1 parent 1eb7143 commit e5b07cb
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions rpc/transport/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,10 @@ func testTransport(t *testing.T, makePipe func() (t1, t2 Transport, err error))
if err != nil {
t.Fatal("t1.NewMessage #1:", err)
}
defer callMsg.Release()
bootMsg, err := t1.NewMessage()
if err != nil {
t.Fatal("t1.NewMessage #2:", err)
}
defer bootMsg.Release()

// Fill in bootstrap message
boot, err := bootMsg.Message().NewBootstrap()
Expand Down

0 comments on commit e5b07cb

Please sign in to comment.