Skip to content

Commit 6d0f554

Browse files
authored
increase timeout to 10 seconds (#19)
1 parent 2447955 commit 6d0f554

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ This version of the SDK is compatible with Go v1.18 and above.
2323
func main() {
2424
eppoClient = eppoclient.InitClient(eppoclient.Config{
2525
ApiKey: "<your_api_key>",
26-
BaseUrl: "<base_url>", // optional, default https://eppo.cloud/api
26+
BaseUrl: "<base_url>", // optional, default https://fscdn.eppo.cloud/api
2727
AssignmentLogger: eppoclient.AssignmentLogger{},
2828
})
2929
}

eppoclient/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
)
1111

1212
// Client for eppo.cloud. Instance of this struct will be created on calling InitClient.
13-
// EppoClient will then immediately start polling experiments data from eppo.cloud.
13+
// EppoClient will then immediately start polling experiments data from Eppo.
1414
type EppoClient struct {
1515
configRequestor iConfigRequestor
1616
poller poller

eppoclient/doc.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,14 @@
1414
func main() {
1515
eppoClient = eppoclient.InitClient(eppoclient.Config{
1616
ApiKey: "<your_api_key>",
17-
BaseUrl: "<eppo.cloud>",
1817
AssignmentLogger: eppoclient.AssignmentLogger{},
1918
})
2019
}
2120
2221
func apiEndpoint() {
2322
assignment, _ := eppoClient.GetAssignment("subject-1", "experiment_5", sbjAttrs)
2423
25-
if assigment == "control" {
24+
if assignment == "control" {
2625
// do something
2726
}
2827
}

eppoclient/httpclient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http"
99
)
1010

11-
const REQUEST_TIMEOUT_SECONDS = time.Duration(1 * time.Second)
11+
const REQUEST_TIMEOUT_SECONDS = time.Duration(10 * time.Second)
1212

1313
type httpClient struct {
1414
baseUrl string

0 commit comments

Comments
 (0)