Browse Source

fix package reference

pull/313/head
xyctruth 4 years ago
parent
commit
ee4571a93e
  1. 4
      dtmcli/dtmimp/utils.go

4
dtmcli/dtmimp/utils.go

@ -20,8 +20,6 @@ import (
"sync" "sync"
"time" "time"
"github.com/dtm-labs/dtm/dtmcli"
"github.com/dtm-labs/dtm/dtmcli/logger" "github.com/dtm-labs/dtm/dtmcli/logger"
"github.com/go-resty/resty/v2" "github.com/go-resty/resty/v2"
) )
@ -245,7 +243,7 @@ func JsonRpcRespAsError(resp *resty.Response) error {
if rerr["code"] == JrpcCodeFailure { if rerr["code"] == JrpcCodeFailure {
return fmt.Errorf("%s. %w", str, ErrFailure) return fmt.Errorf("%s. %w", str, ErrFailure)
} else if rerr["code"] == JrpcCodeOngoing { } else if rerr["code"] == JrpcCodeOngoing {
return dtmcli.ErrOngoing return ErrOngoing
} }
return errors.New(resp.String()) return errors.New(resp.String())
} }

Loading…
Cancel
Save