Pass Event by reference to EventHandler
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 17 Aug 2021 16:12:18 +0000 (11:12 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 10 Sep 2021 03:57:51 +0000 (22:57 -0500)
commita6e650630d7696a0f4de4776d8543d4cfd1a1ed0
tree98653ec01cf7ab758bc45ffb98faeb077d5679fa
parent423f1b1803781d567d077615d7afb6a3d2e7eddd
Pass Event by reference to EventHandler

Passing an Event by reference rather and by move gives more flexibility
for composing event handlers without needing to clone events.
lightning-background-processor/src/lib.rs
lightning-net-tokio/src/lib.rs
lightning/src/chain/chainmonitor.rs
lightning/src/ln/channelmanager.rs
lightning/src/util/events.rs