implement issue #388: Change app-facing default to Sequencing::PreferOrdered

This commit is contained in:
Christien Rioux
2024-08-20 22:29:02 +00:00
parent 22069d3430
commit 3b9626d79a
8 changed files with 17 additions and 27 deletions

View File

@@ -227,9 +227,7 @@ async def test_watch_dht_values():
# as the watch's target
rcWatch = await api.new_routing_context()
rcSet = await (await api.new_routing_context()).with_safety(
veilid.SafetySelection.unsafe(veilid.Sequencing.ENSURE_ORDERED)
)
rcSet = await (await api.new_routing_context()).with_safety(veilid.SafetySelection.unsafe())
async with rcWatch, rcSet:
# Make a DHT record
rec = await rcWatch.create_dht_record(veilid.DHTSchema.dflt(10))

View File

@@ -506,7 +506,7 @@ class SafetySelection:
setattr(self, k, v)
@classmethod
def unsafe(cls, sequencing: Sequencing) -> Self:
def unsafe(cls, sequencing: Sequencing = Sequencing.PREFER_ORDERED) -> Self:
return cls(SafetySelectionKind.UNSAFE, sequencing=sequencing)
@classmethod