Skip to content

Commit

Permalink
ingest: workaround for go problem
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jan 28, 2024
1 parent aa2e571 commit 2fca8f7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ingest/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,11 @@ type StreamConfig struct {
Id string `json:"id"`
Type string `json:"type"`
WorkspaceId string `json:"workspaceId"`
Slug string `json:"slug"`
Name string `json:"name"`
Domains []string `json:"domains"`
AuthorizedJavaScriptDomains string `json:"authorizedJavaScriptDomains"`
PublicKeys []ApiKey `json:"publicKeys"`
PrivateKeys []ApiKey `json:"privateKeys"`
DataLayout string `json:"dataLayout"`
}

type ShortDestinationConfig struct {
Expand Down Expand Up @@ -193,10 +191,11 @@ func (s *StreamWithDestinations) init() {
continue
}
_, ok := DeviceOptions[d.DestinationType]
cp := d
if ok {
s.SynchronousDestinations = append(s.SynchronousDestinations, &d)
s.SynchronousDestinations = append(s.SynchronousDestinations, &cp)
} else {
s.AsynchronousDestinations = append(s.AsynchronousDestinations, &d)
s.AsynchronousDestinations = append(s.AsynchronousDestinations, &cp)
}
}
}

0 comments on commit 2fca8f7

Please sign in to comment.