mirror of
https://github.com/rustfs/rustfs.git
synced 2026-09-06 20:19:14 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bbcc8bc7ab |
@@ -203,9 +203,8 @@ mod tests {
|
|||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
|
|
||||||
fn encode_context(context: &HashMap<String, String>) -> String {
|
fn encode_context(context: &BTreeMap<String, String>) -> String {
|
||||||
let ordered = context.iter().collect::<BTreeMap<_, _>>();
|
serde_json::to_string(context).expect("context serializes")
|
||||||
serde_json::to_string(&ordered).expect("context serializes")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stands in for the KMS-backed sealer: records the context it was called
|
/// Stands in for the KMS-backed sealer: records the context it was called
|
||||||
|
|||||||
Reference in New Issue
Block a user