Skip to content

Commit

Permalink
proto lint (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink authored Dec 13, 2024
1 parent bd03cd7 commit 7c7dbdb
Show file tree
Hide file tree
Showing 3 changed files with 1,153 additions and 1,153 deletions.
4 changes: 2 additions & 2 deletions xmtp_mls/src/groups/device_sync/preference_sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl UserPreferenceUpdate {
.iter()
.map(bincode::serialize)
.collect::<Result<Vec<_>, _>>()?;
let update_proto = UserPreferenceUpdateProto { content: updates };
let update_proto = UserPreferenceUpdateProto { contents: updates };
let content_bytes = serde_json::to_vec(&update_proto)?;
sync_group.prepare_message(&content_bytes, &provider, |now| PlaintextEnvelope {
content: Some(Content::V2(V2 {
Expand All @@ -50,7 +50,7 @@ impl UserPreferenceUpdate {
) -> Result<Vec<Self>, StorageError> {
let conn = provider.conn_ref();

let proto_content = update_proto.content;
let proto_content = update_proto.contents;

let mut updates = Vec::with_capacity(proto_content.len());
let mut consent_updates = vec![];
Expand Down
Loading

0 comments on commit 7c7dbdb

Please sign in to comment.