summary refs log tree commit diff stats
path: root/pkg/cetus
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/cetus')
-rw-r--r--pkg/cetus/cetus.go1
-rw-r--r--pkg/cetus/req.go5
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/cetus/cetus.go b/pkg/cetus/cetus.go
index 17fd906..0e9b7c2 100644
--- a/pkg/cetus/cetus.go
+++ b/pkg/cetus/cetus.go
@@ -2,7 +2,6 @@ package cetus
 
 import (
 	"fmt"
-	"log"
 )
 
 var version string = "v0.5.0"
diff --git a/pkg/cetus/req.go b/pkg/cetus/req.go
index 84e52a5..ed81374 100644
--- a/pkg/cetus/req.go
+++ b/pkg/cetus/req.go
@@ -8,9 +8,10 @@ import (
 )
 
 // GetRes returns api response
-func GetRes(api string, params map[string]string, t time.Duration) (string, error) {
+func GetRes(api string, params map[string]string) (string, error) {
 	c := http.Client{
-		Timeout: time.Second * t,
+		// TODO: timeout should be configurable by the user
+		Timeout: time.Second * 64,
 	}
 
 	req, err := http.NewRequest(http.MethodGet, api, nil)