Skip to content

Commit

Permalink
fix: update analytics regional host name template
Browse files Browse the repository at this point in the history
  • Loading branch information
marchelbling authored and aseure committed Jun 17, 2019
1 parent 434de6f commit 486e444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algolia/analytics/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func defaultHosts(r region.Region) (hosts []*transport.StatefulHost) {
switch r {
case region.EU, region.US:
hosts = append(hosts, transport.NewStatefulHost(fmt.Sprintf("%s.analytics.algolia.com", r), call.IsReadWrite))
hosts = append(hosts, transport.NewStatefulHost(fmt.Sprintf("analytics.%s.algolia.com", r), call.IsReadWrite))
default:
hosts = append(hosts, transport.NewStatefulHost("analytics.algolia.com", call.IsReadWrite))
}
Expand Down

0 comments on commit 486e444

Please sign in to comment.