@@ -19,7 +19,7 @@ type params struct {
1919 connProvider api.ConnectionProvider
2020 seekType seek.Type
2121 fromBlock uint64
22- chaincodeId string
22+ chaincodeID string
2323 respTimeout time.Duration
2424}
2525
@@ -49,11 +49,11 @@ func WithBlockNum(value uint64) options.Opt {
4949 }
5050}
5151
52- // WithChaincodeId specifies the chaincode from which events are to be received.
53- func WithChaincodeId (value string ) options.Opt {
52+ // WithChaincodeID specifies the chaincode from which events are to be received.
53+ func WithChaincodeID (value string ) options.Opt {
5454 return func (p options.Params ) {
55- if setter , ok := p .(chaincodeIdSetter ); ok {
56- setter .SetChaincodeId (value )
55+ if setter , ok := p .(chaincodeIDSetter ); ok {
56+ setter .SetChaincodeID (value )
5757 }
5858 }
5959}
@@ -66,8 +66,8 @@ type fromBlockSetter interface {
6666 SetFromBlock (value uint64 )
6767}
6868
69- type chaincodeIdSetter interface {
70- SetChaincodeId (value string )
69+ type chaincodeIDSetter interface {
70+ SetChaincodeID (value string )
7171}
7272
7373func (p * params ) PermitBlockEvents () {
@@ -93,9 +93,9 @@ func (p *params) SetSeekType(value seek.Type) {
9393 }
9494}
9595
96- func (p * params ) SetChaincodeId (value string ) {
96+ func (p * params ) SetChaincodeID (value string ) {
9797 logger .Debugf ("ChaincodId: %d" , value )
98- p .chaincodeId = value
98+ p .chaincodeID = value
9999}
100100
101101func (p * params ) SetResponseTimeout (value time.Duration ) {
0 commit comments