mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-15 20:20:38 +00:00
(scheduler) Remove unused trait
This commit is contained in:
@@ -96,21 +96,6 @@ pub(super) trait TenantScoped {
|
||||
fn get_tenant_shard_id(&self) -> &TenantShardId;
|
||||
}
|
||||
|
||||
pub(super) trait ScheduledJob {
|
||||
/// Indicative intended time of execution: jobs are executed _after_ this time,
|
||||
/// but how much after is an indicator of whether we're keeping up with schedudling
|
||||
/// goals.
|
||||
fn get_target_time(&self) -> Option<Instant> {
|
||||
None
|
||||
}
|
||||
|
||||
/// If the job runs on a periodic basis, expose the period here. This is used
|
||||
/// together with the target time to determine whether the job is considered late.
|
||||
fn get_period(&self) -> Option<Duration> {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
/// For types that contain a Barrier that may be waited on
|
||||
pub(super) trait HasBarrier {
|
||||
fn get_barrier(&self) -> Barrier;
|
||||
|
||||
Reference in New Issue
Block a user