From 32d289a16b324506561e1eef0426b31f184becfb Mon Sep 17 00:00:00 2001 From: xiaocheng Date: Wed, 13 Apr 2022 22:04:17 +0800 Subject: [PATCH] add api data() for inbound_lane --- modules/messages/src/inbound_lane.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/messages/src/inbound_lane.rs b/modules/messages/src/inbound_lane.rs index 00875bb878..6560df2acd 100644 --- a/modules/messages/src/inbound_lane.rs +++ b/modules/messages/src/inbound_lane.rs @@ -71,6 +71,11 @@ impl InboundLane { InboundLane { storage } } + /// Get this lane data + pub fn data(&self) -> InboundLaneData { + self.storage.data() + } + /// Receive state of the corresponding outbound lane. pub fn receive_state_update( &mut self,