Skip to content

Commit 15aef61

Browse files
author
Jayash
committed
Fix
1 parent 1d56a9a commit 15aef61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

code/go/0chain.net/blobbercore/handler/handler_common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"context"
55
"errors"
66
"fmt"
7+
"github.com/0chain/gosdk/core/client"
78
"net/http"
89
"time"
910

@@ -15,7 +16,6 @@ import (
1516
"github.com/0chain/blobber/code/go/0chain.net/core/common"
1617
"github.com/0chain/blobber/code/go/0chain.net/core/lock"
1718
"github.com/0chain/blobber/code/go/0chain.net/core/node"
18-
"github.com/0chain/gosdk/zcncore"
1919
"go.uber.org/zap"
2020

2121
. "github.com/0chain/blobber/code/go/0chain.net/core/logging"
@@ -79,7 +79,7 @@ func HomepageHandler(w http.ResponseWriter, r *http.Request) {
7979
)
8080

8181
fmt.Fprintf(w, "<div>Miners ...\n")
82-
network := zcncore.GetNetwork()
82+
network, _ := client.GetNetwork(context.Background())
8383
for _, miner := range network.Miners {
8484
fmt.Fprintf(w, "%v\n", miner)
8585
}

0 commit comments

Comments
 (0)