File tree 3 files changed +4
-4
lines changed
exporter/exporterhelper/internal
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ type QueueConfig struct {
58
58
Sizer request.SizerType `mapstructure:"sizer"`
59
59
60
60
// QueueSize represents the maximum data size allowed for concurrent storage and processing.
61
- QueueSize int `mapstructure:"queue_size"`
61
+ QueueSize int64 `mapstructure:"queue_size"`
62
62
63
63
// NumConsumers is the number of consumers from the queue.
64
64
NumConsumers int `mapstructure:"num_consumers"`
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ type Config struct {
25
25
Sizer request.SizerType `mapstructure:"sizer"`
26
26
27
27
// QueueSize represents the maximum data size allowed for concurrent storage and processing.
28
- QueueSize int `mapstructure:"queue_size"`
28
+ QueueSize int64 `mapstructure:"queue_size"`
29
29
30
30
// BlockOnOverflow determines the behavior when the component's TotalSize limit is reached.
31
31
// If true, the component will wait for space; otherwise, operations will immediately return a retryable error.
Original file line number Diff line number Diff line change @@ -58,14 +58,14 @@ func NewQueueBatch(
58
58
if cfg .StorageID == nil {
59
59
q = newAsyncQueue (newMemoryQueue [request.Request ](memoryQueueSettings [request.Request ]{
60
60
sizer : sizer ,
61
- capacity : int64 ( cfg .QueueSize ) ,
61
+ capacity : cfg .QueueSize ,
62
62
waitForResult : cfg .WaitForResult ,
63
63
blockOnOverflow : cfg .BlockOnOverflow ,
64
64
}), cfg .NumConsumers , b .Consume )
65
65
} else {
66
66
q = newAsyncQueue (newPersistentQueue [request.Request ](persistentQueueSettings [request.Request ]{
67
67
sizer : sizer ,
68
- capacity : int64 ( cfg .QueueSize ) ,
68
+ capacity : cfg .QueueSize ,
69
69
blockOnOverflow : cfg .BlockOnOverflow ,
70
70
signal : qSet .Signal ,
71
71
storageID : * cfg .StorageID ,
You can’t perform that action at this time.
0 commit comments