Skip to content

Commit df09c06

Browse files
committed
fix return type
1 parent acbd6ef commit df09c06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/network.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ const (
3434
scrape_configs:
3535
- job_name: prometheus
3636
static_configs:
37-
- targets:
37+
- targets:
3838
- localhost:9090
3939
- job_name: avalanchego-machine
4040
static_configs:
41-
- targets:
41+
- targets:
4242
- localhost:9100
4343
labels:
4444
alias: machine
@@ -608,7 +608,7 @@ func (lc *localNetwork) updateSubnetInfo(ctx context.Context) error {
608608

609609
isElastic := false
610610
elasticSubnetID := ids.Empty
611-
if _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
611+
if _, _, err := node.GetAPIClient().PChainAPI().GetCurrentSupply(ctx, subnetID); err == nil {
612612
isElastic = true
613613
elasticSubnetID, err = lc.nw.GetElasticSubnetID(ctx, subnetID)
614614
if err != nil {

0 commit comments

Comments
 (0)