Skip to content

Commit

Permalink
[FAB-8003] Use stdlib sync map
Browse files Browse the repository at this point in the history
Change-Id: Iab2d87b5c42835c89a546be79989283936520b54
Signed-off-by: Troy Ronda <[email protected]>
  • Loading branch information
troyronda committed Feb 1, 2018
1 parent 10947da commit bc8e5ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
8 changes: 1 addition & 7 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@
name = "golang.org/x/crypto"
branch = "master"

[[constraint]]
name = "golang.org/x/sync"
branch = "master"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.2.0"
5 changes: 2 additions & 3 deletions pkg/fabric-client/events/eventhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"time"

"github.com/golang/protobuf/proto"
syncmap "golang.org/x/sync/syncmap"

"github.com/hyperledger/fabric-sdk-go/api/apiconfig"
fab "github.com/hyperledger/fabric-sdk-go/api/apifabclient"
Expand All @@ -40,11 +39,11 @@ type EventHub struct {
//Used for protecting parts of code from running concurrently
mtx sync.RWMutex
// Map of clients registered for chaincode events
chaincodeRegistrants syncmap.Map
chaincodeRegistrants sync.Map
// Array of clients registered for block events
blockRegistrants []func(*common.Block)
// Map of clients registered for transactional events
txRegistrants syncmap.Map
txRegistrants sync.Map
// peer addr to connect to
peerAddr string
// peer tls certificate
Expand Down

0 comments on commit bc8e5ef

Please sign in to comment.