MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / clear_samples

Method clear_samples

mserver/MasterService/src/repository.rs:457–463  ·  view source on GitHub ↗
(&self, server_id: &str)

Source from the content-addressed store, hash-verified

455 .fetch_optional(&mut *transaction)
456 .await?
457 .and_then(|row| row.try_get::<String, _>(0).ok());
458 let Some(old_server_id) = owner else {
459 transaction.rollback().await?;
460 return Ok(TokenRelocation::NotFound);
461 };
462 if old_server_id == new_server_id {
463 transaction.rollback().await?;
464 return Ok(TokenRelocation::Unchanged);
465 }
466

Callers 1

seed_dev_dataFunction · 0.80

Calls 2

bind_sqlMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected