Skip to content

Commit 2447955

Browse files
authored
Reduce update latency by using new config endpoint (#18)
* reduce update latency by using new config endpoint * update version
1 parent aaaa132 commit 2447955

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

eppoclient/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package eppoclient
22

3-
const default_base_url = "https://eppo.cloud/api"
3+
const default_base_url = "https://fscdn.eppo.cloud/api"
44

55
type Config struct {
66
BaseUrl string

eppoclient/configurationrequestor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66
)
77

8-
const RAC_ENDPOINT = "/randomized_assignment/v2/config"
8+
const RAC_ENDPOINT = "/randomized_assignment/v3/config"
99

1010
type iConfigRequestor interface {
1111
GetConfiguration(key string) (experimentConfiguration, error)

eppoclient/eppoclient_e2e_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func initFixture() string {
6161

6262
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
6363
switch strings.TrimSpace(r.URL.Path) {
64-
case "/randomized_assignment/v2/config":
64+
case "/randomized_assignment/v3/config":
6565
json.NewEncoder(w).Encode(testResponse)
6666
default:
6767
http.NotFoundHandler().ServeHTTP(w, r)

eppoclient/initclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package eppoclient
44

55
import "net/http"
66

7-
var __version__ = "1.1.0"
7+
var __version__ = "1.2.0"
88

99
// InitClient is required to start polling of experiments configurations and create
1010
// an instance of EppoClient, which could be used to get assignments information.

0 commit comments

Comments
 (0)