Skip to content

Commit 36eb454

Browse files
committed
chore: update ints
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
1 parent 3c1f0b7 commit 36eb454

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/v4/jobs/job.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Queue interface {
1313
// ExtractMin returns the item with the highest priority (less value is the highest priority)
1414
ExtractMin() Job
1515
// Len returns the number of items in the queue
16-
Len() uint
16+
Len() uint64
1717
}
1818

1919
// Job represents a binary heap item
@@ -44,22 +44,22 @@ type Message interface {
4444
// Payload returns the data associated with the job
4545
Payload() []byte
4646
// Delay returns the delay time for the Job (not supported by all drivers)
47-
Delay() int
47+
Delay() int64
4848
// AutoAck returns the autocommit status for the Job
4949
AutoAck() bool
5050
// UpdatePriority sets the priority of the Job. Priority is optional but cannot be set to 0.
5151
// The default priority is 10
52-
UpdatePriority(int)
52+
UpdatePriority(int64)
5353
// Headers returns the metadata for the item
5454
Headers() map[string][]string
5555
}
5656

5757
// KAFKA options (leave them empty for other drivers)
5858
type KafkaOptions interface {
5959
// Offset returns the offset associated with the Job
60-
Offset() int
60+
Offset() int64
6161
// Partition returns the partition associated with the Job
62-
Partition() int
62+
Partition() int32
6363
// Topic returns the topic associated with the Job
6464
Topic() string
6565
// Metadata returns the metadata associated with the Job

0 commit comments

Comments
 (0)