Skip to content

Commit

Permalink
core: Remove unused pkg/errors import.
Browse files Browse the repository at this point in the history
This was aliasing some otherwise used functions (errors.New),
hence the lack of compiler error message. No functional impact.
  • Loading branch information
j0sh committed Mar 30, 2020
1 parent bd6b128 commit dd71210
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/orchestrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package core

import (
"context"
ogErrors "errors"
"errors"
"fmt"
"io/ioutil"
"math/big"
Expand All @@ -16,7 +16,6 @@ import (
ethcommon "github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/crypto"
"github.com/golang/glog"
"github.com/pkg/errors"

"github.com/livepeer/go-livepeer/common"
"github.com/livepeer/go-livepeer/drivers"
Expand Down Expand Up @@ -331,8 +330,8 @@ func NewOrchestrator(n *LivepeerNode, rm common.RoundsManager) *orchestrator {

// LivepeerNode transcode methods

var ErrOrchBusy = ogErrors.New("OrchestratorBusy")
var ErrOrchCap = ogErrors.New("OrchestratorCapped")
var ErrOrchBusy = errors.New("OrchestratorBusy")
var ErrOrchCap = errors.New("OrchestratorCapped")

type TranscodeResult struct {
Err error
Expand Down

0 comments on commit dd71210

Please sign in to comment.