Skip to content

Commit 5c59b2a

Browse files
committed
Format
1 parent e5a86af commit 5c59b2a

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

server/swim_agent/src/lanes/join/map/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ mod tests;
5353
pub use downlink::{AfterClosed, JoinMapLaneUpdate};
5454
pub use init::LifecycleInitializer;
5555

56-
/// Model of a join map lane. This is conceptually similar to a [`super::super::MapLane`] only, rather than
56+
/// Model of a join map lane. This is conceptually similar to a [`super::super::MapLane`] only, rather than
5757
/// the state being modified directly, it is populated through a series of map downlinks Each map downlink is
5858
/// identified by a link key of type `L`.
59-
///
59+
///
6060
/// Each entry in the map is 'owned' by the link that most recently updated it. When a 'clear' message is
6161
/// received on a link, all keys owned by that link will be removed from the map. In all other respects,
6262
/// it behaves as a read only map lane, having the same set of event handlers.
63-
///
64-
/// Join lanes provide views of the state of other remote lanes and so do not persist their state and are
63+
///
64+
/// Join lanes provide views of the state of other remote lanes and so do not persist their state and are
6565
/// always considered to be transient.
6666
#[derive(Debug)]
6767
pub struct JoinMapLane<L, K, V> {

server/swim_agent/src/lanes/join/value/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ pub use downlink::{AfterClosed, JoinValueLaneUpdate};
5454
pub use init::LifecycleInitializer;
5555

5656
/// Model of a join value lane. This is conceptually similar to a [`super::super::MapLane`] only, rather
57-
/// than the state being modified directly, it is populated through a series of downlinks associated with
57+
/// than the state being modified directly, it is populated through a series of downlinks associated with
5858
/// each key. Hence it maintains a view of the state of a number of remote values as a single map. In all
5959
/// other respects, it behaves as a read only map lane, having the same event handlers.
60-
///
61-
/// Join lanes provide views of the state of other remote lanes and so do not persist their state and are
60+
///
61+
/// Join lanes provide views of the state of other remote lanes and so do not persist their state and are
6262
/// always considered to be transient.
6363
#[derive(Debug)]
6464
pub struct JoinValueLane<K, V> {

swim/tests/deriveagentlanemodel.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,7 @@ fn multiple_lanes() {
393393
eighth: DemandMapLane<i32, i32>,
394394
ninth: SimpleHttpLane<i32>,
395395
tenth: JoinMapLane<i32, i32, i32>,
396+
eleventh: SupplyLane<i32>,
396397
}
397398

398399
check_agent::<MultipleLanes>(vec![
@@ -401,15 +402,12 @@ fn multiple_lanes() {
401402
persistent_lane(2, "third", WarpLaneKind::Value),
402403
persistent_lane(3, "fourth", WarpLaneKind::Map),
403404
transient_lane(4, "fifth", WarpLaneKind::Command),
404-
persistent_lane(5, "sixth", WarpLaneKind::JoinValue),
405+
transient_lane(5, "sixth", WarpLaneKind::JoinValue),
405406
transient_lane(6, "seventh", WarpLaneKind::Demand),
406-
persistent_lane(1, "second", WarpLaneKind::Map),
407-
persistent_lane(3, "fourth", WarpLaneKind::Map),
408-
persistent_lane(5, "sixth", WarpLaneKind::JoinValue),
409407
transient_lane(7, "eighth", WarpLaneKind::DemandMap),
410408
http_lane(8, "ninth"),
411409
transient_lane(9, "tenth", WarpLaneKind::JoinMap),
412-
transient_lane(9, "tenth", WarpLaneKind::Supply),
410+
transient_lane(10, "eleventh", WarpLaneKind::Supply),
413411
]);
414412
}
415413

0 commit comments

Comments
 (0)