Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DyrellC committed Aug 22, 2022
1 parent 959b0db commit 3b43db8
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions streams/src/api/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,11 +417,9 @@ impl<T> User<T> {
// From the point of view of cursor tracking, the message exists, regardless of the validity or
// accessibility to its content. Therefore we must update the cursor of the publisher before
// handling the message
self.state.cursor_store.insert_cursor(
&topic,
Permissioned::Admin(publisher),
preparsed.header().sequence(),
);
self.state
.cursor_store
.insert_cursor(&topic, Permissioned::Admin(publisher), preparsed.header().sequence());

// Unwrap message
// Ok to unwrap since an author identifier is set at the same time as the stream address
Expand Down Expand Up @@ -495,11 +493,9 @@ impl<T> User<T> {
// From the point of view of cursor tracking, the message exists, regardless of the validity or
// accessibility to its content. Therefore we must update the cursor of the publisher before
// handling the message
self.state.cursor_store.insert_cursor(
&topic,
permission,
preparsed.header().sequence(),
);
self.state
.cursor_store
.insert_cursor(&topic, permission, preparsed.header().sequence());

// Unwrap message
let linked_msg_address = preparsed.header().linked_msg_address().ok_or_else(|| {
Expand Down

0 comments on commit 3b43db8

Please sign in to comment.