Skip to content

Commit

Permalink
fix: reverted changes in config_builder
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishkkatara committed Jun 12, 2024
1 parent 5be93fc commit 6a78a12
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions testhelper/backendconfigtest/config_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"time"

"github.com/rudderlabs/rudder-go-kit/testhelper/rand"

backendconfig "github.com/rudderlabs/rudder-server/backend-config"
)

Expand All @@ -26,15 +25,6 @@ type ConfigBuilder struct {

// WithSource adds a source to the config
func (b *ConfigBuilder) WithSource(source backendconfig.SourceT) *ConfigBuilder {
source.WorkspaceID = b.v.WorkspaceID
for i := range source.Destinations {
source.Destinations[i].WorkspaceID = b.v.WorkspaceID
}
b.v.Sources = append(b.v.Sources, source)
return b
}

func (b *ConfigBuilder) WithCredentials(credentials map[string]backendconfig.Credential) *ConfigBuilder {
b.v.Credentials = credentials
return b
}

0 comments on commit 6a78a12

Please sign in to comment.