Skip to content

Commit cded961

Browse files
committed
Serialize Spark local revisions
Concurrent outgoing changes could allocate the same local revision and write to the same sync queue key. Serialize revision allocation so each pending change gets a distinct storage key.
1 parent 09f5574 commit cded961

2 files changed

Lines changed: 110 additions & 43 deletions

File tree

orange-sdk/src/trusted_wallet/spark/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl Spark {
333333
},
334334
};
335335

336-
let spark_store = Arc::new(spark_store::SparkStore(store));
336+
let spark_store = Arc::new(spark_store::SparkStore::new(store));
337337
let builder = SdkBuilder::new(spark_config, seed).with_storage(spark_store);
338338

339339
let spark_wallet = Arc::new(builder.build().await.map_err(|e| {

0 commit comments

Comments
 (0)