Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions pkg/event/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,6 @@ func NewBatchEventProcessor(options ...BPOptionConfig) *BatchEventProcessor {
p.BatchSize = DefaultBatchSize
}

if p.EventEndPoint == "" {
p.EventEndPoint = EventEndPoints["US"]
}

if p.BatchSize > p.MaxQueueSize {
p.logger.Warning(
fmt.Sprintf("Batch size %d is larger than queue size %d. Setting to defaults",
Expand Down
4 changes: 2 additions & 2 deletions pkg/event/processor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestCustomEventProcessor_Create(t *testing.T) {
func TestEndPointOptionEventProcessor(t *testing.T) {
// Default end point
processor := NewBatchEventProcessor()
assert.Equal(t, EventEndPoints["US"], processor.EventEndPoint)
assert.Equal(t, "", processor.EventEndPoint)

customEndPoint := "https://logx.optimizely.com"
processor = NewBatchEventProcessor(
Expand All @@ -133,7 +133,7 @@ func TestEndPointOptionEventProcessor(t *testing.T) {
func TestEndPointOptionEU(t *testing.T) {
// Default end point
processor := NewBatchEventProcessor()
assert.Equal(t, EventEndPoints["US"], processor.EventEndPoint)
assert.Equal(t, "", processor.EventEndPoint)

euEndpoint := EventEndPoints["EU"]
processor = NewBatchEventProcessor(
Expand Down