diff --git a/.drone.yml b/.drone.yml index cfcd9ae..b91528e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,15 +1,38 @@ + +# kind: pipeline +# type: kubernetes +# name: build-amd64 + +# node_selector: +# kubernetes.io/arch: amd64 + +# steps: +# - name: docker +# image: plugins/docker +# settings: +# repo: badjware/helium-blockchain-exporter +# # docker use a mtu of 1500 by default, which may cause packet drop in k8s +# mtu: 1450 +# auto_tag: true +# username: +# from_secret: docker_username +# password: +# from_secret: docker_password +--- kind: pipeline type: kubernetes -name: arm64 +name: build-arm64 node_selector: - beta.kubernetes.io/arch: arm64 + kubernetes.io/arch: arm64 steps: - name: docker image: plugins/docker settings: repo: badjware/helium-blockchain-exporter + # docker use a mtu of 1500 by default, which may cause packet drop in k8s + mtu: 1450 auto_tag: true username: from_secret: docker_username diff --git a/heliumapi/query.go b/heliumapi/query.go index 8ac9a0e..42f6f08 100644 --- a/heliumapi/query.go +++ b/heliumapi/query.go @@ -5,7 +5,6 @@ import ( "encoding/json" "fmt" "io/ioutil" - "log" "net/http" "time" @@ -125,7 +124,7 @@ func getHeliumApiWithCursor(path string, params *map[string]string) ([][]byte, e defer resp.Body.Close() // read the response body and add it to the result array - log.Printf("querying %v", req.URL.String()) + // log.Printf("querying %v", req.URL.String()) body, err := ioutil.ReadAll(resp.Body) if err != nil { return nil, fmt.Errorf("failed to read response body of %v: %v", req.URL.String(), err)