File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -161,10 +161,6 @@ func NewBatchEventProcessor(options ...BPOptionConfig) *BatchEventProcessor {
161161 p .BatchSize = DefaultBatchSize
162162 }
163163
164- if p .EventEndPoint == "" {
165- p .EventEndPoint = EventEndPoints ["US" ]
166- }
167-
168164 if p .BatchSize > p .MaxQueueSize {
169165 p .logger .Warning (
170166 fmt .Sprintf ("Batch size %d is larger than queue size %d. Setting to defaults" ,
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ func TestCustomEventProcessor_Create(t *testing.T) {
122122func TestEndPointOptionEventProcessor (t * testing.T ) {
123123 // Default end point
124124 processor := NewBatchEventProcessor ()
125- assert .Equal (t , EventEndPoints [ "US" ] , processor .EventEndPoint )
125+ assert .Equal (t , "" , processor .EventEndPoint )
126126
127127 customEndPoint := "https://logx.optimizely.com"
128128 processor = NewBatchEventProcessor (
@@ -133,7 +133,7 @@ func TestEndPointOptionEventProcessor(t *testing.T) {
133133func TestEndPointOptionEU (t * testing.T ) {
134134 // Default end point
135135 processor := NewBatchEventProcessor ()
136- assert .Equal (t , EventEndPoints [ "US" ] , processor .EventEndPoint )
136+ assert .Equal (t , "" , processor .EventEndPoint )
137137
138138 euEndpoint := EventEndPoints ["EU" ]
139139 processor = NewBatchEventProcessor (
You can’t perform that action at this time.
0 commit comments