Skip to content

Commit

Permalink
[FAB-7508] Move status, retry to pkg/errors
Browse files Browse the repository at this point in the history
Change-Id: I293772464c7687704a2111a09653d78826d8c80a
Signed-off-by: Divyank Katira <[email protected]>
  • Loading branch information
d1vyank committed Jan 30, 2018
1 parent 47e68c4 commit f3eca56
Show file tree
Hide file tree
Showing 20 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion api/apiconfig/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"io/ioutil"

"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
)

// NetworkConfig provides a static definition of a Hyperledger Fabric network
Expand Down
2 changes: 1 addition & 1 deletion api/apitxn/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package apitxn
import (
"time"

"github.com/hyperledger/fabric-sdk-go/pkg/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/retry"
)

//WithTimeout encapsulates time.Duration to Option
Expand Down
2 changes: 1 addition & 1 deletion api/apitxn/txn.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package apitxn
import (
"time"

"github.com/hyperledger/fabric-sdk-go/pkg/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/retry"
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
)

Expand Down
2 changes: 1 addition & 1 deletion api/apitxn/txnhandler/txnhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package txnhandler
import (
"github.com/hyperledger/fabric-sdk-go/api/apifabclient"
"github.com/hyperledger/fabric-sdk-go/api/apitxn"
"github.com/hyperledger/fabric-sdk-go/pkg/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/retry"
)

//Handler for chaining transaction executions
Expand Down
2 changes: 1 addition & 1 deletion pkg/retry/defaults.go → pkg/errors/retry/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package retry
import (
"time"

"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
grpcCodes "google.golang.org/grpc/codes"
Expand Down
2 changes: 1 addition & 1 deletion pkg/retry/retry.go → pkg/errors/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package retry
import (
"time"

"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
)

// Opts defines the retry parameters
Expand Down
2 changes: 1 addition & 1 deletion pkg/retry/retry_test.go → pkg/errors/retry/retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"testing"
"time"

"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
"github.com/stretchr/testify/assert"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/fabric-client/events/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import (
cnsmr "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/events/consumer"
"github.com/hyperledger/fabric-sdk-go/pkg/config/urlutil"
"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
consumer "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/events/consumer"
"github.com/hyperledger/fabric-sdk-go/pkg/logging"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/core/ledger/util"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/utils"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/events/eventhub_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"reflect"

fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/orderer/deprecated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ import (
"github.com/stretchr/testify/assert"

"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
client "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client"
mocks "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
)

//
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/orderer/orderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
ab "github.com/hyperledger/fabric-sdk-go/internal/github.com/hyperledger/fabric/protos/orderer"
"github.com/hyperledger/fabric-sdk-go/pkg/config/comm"
"github.com/hyperledger/fabric-sdk-go/pkg/config/urlutil"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"

"crypto/x509"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/orderer/orderer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import (
"github.com/stretchr/testify/assert"

"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
client "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client"
mocks "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
)

var testOrdererURL = "127.0.0.1:0"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/peer/peerendorser.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/hyperledger/fabric-sdk-go/api/apiconfig"
"github.com/hyperledger/fabric-sdk-go/api/apitxn"
"github.com/hyperledger/fabric-sdk-go/pkg/config/urlutil"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"

"crypto/x509"
Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-client/peer/peerendorser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"

"github.com/hyperledger/fabric-sdk-go/api/apiconfig/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions pkg/fabric-txn/chclient/chclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import (

"github.com/hyperledger/fabric-sdk-go/api/apitxn/txnhandler"
"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
txnHandlerImpl "github.com/hyperledger/fabric-sdk-go/pkg/fabric-txn/txnhandler"
"github.com/hyperledger/fabric-sdk-go/pkg/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
)

const (
Expand Down
5 changes: 2 additions & 3 deletions pkg/fabric-txn/chclient/chclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ import (
"github.com/stretchr/testify/assert"

"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/retry"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/channel"
fcmocks "github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/peer"
"github.com/hyperledger/fabric-sdk-go/pkg/retry"

txnmocks "github.com/hyperledger/fabric-sdk-go/pkg/fabric-txn/mocks"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
pb "github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/peer"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/fabric-txn/txnhandler/txnhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/hyperledger/fabric-sdk-go/api/apitxn"
"github.com/hyperledger/fabric-sdk-go/api/apitxn/txnhandler"
"github.com/hyperledger/fabric-sdk-go/pkg/errors"
"github.com/hyperledger/fabric-sdk-go/pkg/errors/status"
"github.com/hyperledger/fabric-sdk-go/pkg/fabric-client/peer"
"github.com/hyperledger/fabric-sdk-go/pkg/fabric-txn/internal"
"github.com/hyperledger/fabric-sdk-go/pkg/status"
"github.com/hyperledger/fabric-sdk-go/third_party/github.com/hyperledger/fabric/protos/common"
)

Expand Down

0 comments on commit f3eca56

Please sign in to comment.