diff options
author | Valery Piashchynski <[email protected]> | 2021-07-03 15:19:48 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-07-03 15:19:48 +0300 |
commit | 677db79f76fcc566bee2b1b51d0f40a0c9f2ac19 (patch) | |
tree | 7c02179dd4b7927e2c01734ba8ee3b5b63ff831b /plugins/jobs/brokers/ephemeral | |
parent | e4834e08dcf5885623091bbe5e7e75e7950a07f3 (diff) |
- Initial binary_heap
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/jobs/brokers/ephemeral')
-rw-r--r-- | plugins/jobs/brokers/ephemeral/entry.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/jobs/brokers/ephemeral/entry.go b/plugins/jobs/brokers/ephemeral/entry.go index bf8796d5..3cedec3e 100644 --- a/plugins/jobs/brokers/ephemeral/entry.go +++ b/plugins/jobs/brokers/ephemeral/entry.go @@ -1,13 +1,18 @@ package ephemeral type entry struct { - id string + id string + priority uint64 } func (e *entry) ID() string { return e.id } +func (e *entry) Priority() uint64 { + return e.priority +} + func (e *entry) Ask() { // no-op } |