File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ type Bulk struct {
4949 batchTicker * time.Ticker
5050 isClosed chan bool
5151 esClient * elasticsearch.Client
52- batch []BatchItem
53- typeName []byte
5452 readers []* bytes.MultiDimensionReader
53+ typeName []byte
54+ batch []BatchItem
5555 batchIndex int
5656 batchSize int
5757 batchSizeLimit int
@@ -60,7 +60,6 @@ type Bulk struct {
6060 batchByteSize int
6161 concurrentRequest int
6262 flushLock sync.Mutex
63- pqCDC * cdc.Connector
6463}
6564
6665type BatchItem struct {
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ type Metric interface {
2020var hostname , _ = os .Hostname ()
2121
2222type metric struct {
23- slotName string
24- pqCDC cdc.Connector
25-
23+ pqCDC cdc.Connector
2624 processLatencyMs prometheus.Gauge
2725 bulkRequestProcessLatencyMs prometheus.Gauge
28-
29- totalIndex map [string ]prometheus.Counter
30- totalDelete map [ string ]prometheus. Counter
26+ totalIndex map [ string ]prometheus. Counter
27+ totalDelete map [string ]prometheus.Counter
28+ slotName string
3129}
3230
3331func NewMetric (pqCDC cdc.Connector , slotName string ) Metric {
You can’t perform that action at this time.
0 commit comments