Skip to content

Commit

Permalink
ingest: fix for ingest type detection if site_it was used instead of …
Browse files Browse the repository at this point in the history
…write key
  • Loading branch information
absorbb committed Dec 3, 2024
1 parent 941d61a commit eae4800
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ingest/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -561,10 +561,11 @@ func (r *Router) checkOrigin(c *gin.Context, loc *StreamCredentials, stream *Str
return nil
}

func (r *Router) WriteKeyStreamLocator(loc *StreamCredentials, _ bool) *StreamWithDestinations {
func (r *Router) WriteKeyStreamLocator(loc *StreamCredentials, s2sEndpoint bool) *StreamWithDestinations {
if loc.WriteKey != "" {
parts := strings.Split(loc.WriteKey, ":")
if len(parts) == 1 {
loc.IngestType = utils.Ternary(s2sEndpoint, IngestTypeS2S, IngestTypeBrowser)
return r.repository.GetData().GetStreamById(loc.WriteKey)
} else {
binding := r.repository.GetData().getStreamByKeyId(parts[0])
Expand Down
1 change: 1 addition & 0 deletions jitsubase/appbase/abstract_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ func (r *AbstractRepository[T]) refresh(notify bool) {
if r.cacheDir != "" {
r.storeCached()
}
r.Infof("Updated: %v previous: %v ms: %d", newTag, tag, time.Now().Sub(start).Milliseconds())
if notify {
select {
case r.changesChan <- true:
Expand Down
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash

npx jitsu-build-scripts docker -t bulker,ingest,syncctl,sidecar,ingmgr --platform linux/amd64,linux/arm64 --push $@
npx jitsu-build-scripts docker -t bulker,ingest,syncctl,sidecar,ingmgr,cfgkpr --platform linux/amd64,linux/arm64 --push $@

0 comments on commit eae4800

Please sign in to comment.