Skip to content

Commit 0d1ce5c

Browse files
author
Nao Nishijima
committed
[FAB-4377] Fix typo a description of peer version
This patches fix typo long description of peer version command and some comments. the typo is "the the" and I found same typos in some other comments. Change-Id: Id21d3c6ddd5d0a3379284e008aced5e67b89c2c0 Signed-off-by: Nao Nishijima <[email protected]>
1 parent f6abb18 commit 0d1ce5c

File tree

11 files changed

+31
-31
lines changed

11 files changed

+31
-31
lines changed

core/ledger/kvledger/kv_ledger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func (l *kvLedger) recoverDBs() error {
101101
recoverers[0], recoverers[1] = recoverers[1], recoverers[0]
102102
}
103103
if recoverers[0].firstBlockNum != recoverers[1].firstBlockNum {
104-
// bring the lagger db equal to the the other db
104+
// bring the lagger db equal to the other db
105105
if err := l.recommitLostBlocks(recoverers[0].firstBlockNum, recoverers[1].firstBlockNum-1,
106106
recoverers[0].recoverable); err != nil {
107107
return err

core/ledger/kvledger/txmgmt/statedb/statecouchdb/query_wrapper.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func processAndWrapQuery(jsonQueryMap map[string]interface{}) {
177177
//if the type is an array, then iterate through the items
178178
case []interface{}:
179179

180-
//iterate the the items in the array
180+
//iterate the items in the array
181181
for itemKey, itemValue := range jsonValueType {
182182

183183
switch itemValue.(type) {
@@ -222,7 +222,7 @@ func processInterfaceMap(jsonFragment map[string]interface{}) {
222222
bufferFragment[keyVal] = itemVal
223223
}
224224

225-
//iterate the the item in the map
225+
//iterate the item in the map
226226
for keyVal, itemVal := range bufferFragment {
227227

228228
//check to see if the key is an operator

docs/source/configtx.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ notation.
7777

7878
::
7979

80-
// Assume the the following groups are defined
80+
// Assume the following groups are defined
8181
var root, child1, child2, grandChild1, grandChild2, grandChild3 *ConfigGroup
8282

8383
// Set the following values

events/producer/producer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func NewEventsServer(bufferSize uint, timeout time.Duration) *EventsServer {
4545
return globalEventsServer
4646
}
4747

48-
// Chat implementation of the the Chat bidi streaming RPC function
48+
// Chat implementation of the Chat bidi streaming RPC function
4949
func (p *EventsServer) Chat(stream pb.Events_ChatServer) error {
5050
handler, err := newEventHandler(stream)
5151
if err != nil {

examples/ccchecker/chaincodes/newkeyperinvoke/shadow/newkeyperinvoke.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func (t *NewKeyPerInvoke) GetInvokeArgs(ccnum int, iter int) [][]byte {
7474
return args
7575
}
7676

77-
//PostInvoke store the the key/val for later verification
77+
//PostInvoke store the key/val for later verification
7878
func (t *NewKeyPerInvoke) PostInvoke(args [][]byte, resp []byte) error {
7979
if len(args) < 3 {
8080
return fmt.Errorf("invalid number of args posted %d", len(args))

msp/configbuilder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func GetLocalMspConfig(dir string, bccspConfig *factory.FactoryOpts, ID string)
145145

146146
/* FIXME: for now we're making the following assumptions
147147
1) there is exactly one signing cert
148-
2) BCCSP's KeyStore has the the private key that matches SKI of
148+
2) BCCSP's KeyStore has the private key that matches SKI of
149149
signing cert
150150
*/
151151

peer/version/version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func Cmd() *cobra.Command {
3131
var cobraCommand = &cobra.Command{
3232
Use: "version",
3333
Short: "Print fabric peer version.",
34-
Long: `Print current version of the the fabric peer server.`,
34+
Long: `Print current version of the fabric peer server.`,
3535
Run: func(cmd *cobra.Command, args []string) {
3636
Print()
3737
},

protos/gossip/message.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ message GossipHello {
191191
PullMsgType msg_type = 3;
192192
}
193193

194-
// DataUpdate is the the final message in the pull phase
194+
// DataUpdate is the final message in the pull phase
195195
// sent from the receiver to the initiator
196196
message DataUpdate {
197197
uint64 nonce = 1;

test/chaincodes/AuctionApp/art.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ func GetBid(stub shim.ChaincodeStubInterface, function string, args []string) pb
589589

590590
var err error
591591

592-
// Check there are 2 Arguments provided as per the the struct - two are computed
592+
// Check there are 2 Arguments provided as per the struct - two are computed
593593
// See example
594594
if len(args) < 2 {
595595
fmt.Println("GetBid(): Incorrect number of arguments. Expecting 2 ")
@@ -782,7 +782,7 @@ func CreateItemObject(args []string) (ItemObject, error) {
782782
var err error
783783
var myItem ItemObject
784784

785-
// Check there are 13 Arguments provided as per the the struct - two are computed
785+
// Check there are 13 Arguments provided as per the struct - two are computed
786786
if len(args) != 13 {
787787
fmt.Println("CreateItemObject(): Incorrect number of arguments. Expecting 13 ")
788788
return myItem, errors.New("CreateItemObject(): Incorrect number of arguments. Expecting 13 ")
@@ -1889,7 +1889,7 @@ func GetListOfOpenAucs(stub shim.ChaincodeStubInterface, function string, args [
18891889
////////////////////////////////////////////////////////////////////////////
18901890
func GetItemLog(stub shim.ChaincodeStubInterface, function string, args []string) pb.Response {
18911891

1892-
// Check there are 1 Arguments provided as per the the struct - two are computed
1892+
// Check there are 1 Arguments provided as per the struct - two are computed
18931893
// See example
18941894
if len(args) < 1 {
18951895
fmt.Println("GetItemLog(): Incorrect number of arguments. Expecting 1 ")
@@ -1947,7 +1947,7 @@ func GetItemLog(stub shim.ChaincodeStubInterface, function string, args []string
19471947
////////////////////////////////////////////////////////////////////////////
19481948
func GetItemListByCat(stub shim.ChaincodeStubInterface, function string, args []string) pb.Response {
19491949

1950-
// Check there are 1 Arguments provided as per the the struct - two are computed
1950+
// Check there are 1 Arguments provided as per the struct - two are computed
19511951
// See example
19521952
if len(args) < 1 {
19531953
fmt.Println("GetItemListByCat(): Incorrect number of arguments. Expecting 1 ")
@@ -2002,7 +2002,7 @@ func GetItemListByCat(stub shim.ChaincodeStubInterface, function string, args []
20022002
////////////////////////////////////////////////////////////////////////////
20032003
func GetUserListByCat(stub shim.ChaincodeStubInterface, function string, args []string) pb.Response {
20042004

2005-
// Check there are 1 Arguments provided as per the the struct - two are computed
2005+
// Check there are 1 Arguments provided as per the struct - two are computed
20062006
// See example
20072007
if len(args) < 1 {
20082008
fmt.Println("GetUserListByCat(): Incorrect number of arguments. Expecting 1 ")

test/chaincodes/AuctionApp/table_api.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func GetList(stub shim.ChaincodeStubInterface, objectType string, keys []string)
462462

463463
////////////////////////////////////////////////////////////////////////////
464464
// This function verifies if the number of key provided is at least 1 and
465-
// < the the max keys defined for the Object
465+
// < the max keys defined for the Object
466466
////////////////////////////////////////////////////////////////////////////
467467

468468
func VerifyAtLeastOneKeyIsPresent(objectType string, args []string) error {

test/regression/daily/ledger_lte.py

+16-16
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class perf_goleveldb(unittest.TestCase):
55

66
def test_FAB_3790_VaryNumParallelTxPerChain(self):
77
'''
8-
In this Performance test, we observe the the performance (time to
8+
In this Performance test, we observe the performance (time to
99
complete a set number of Ledger operations) of the Ledger component,
1010
with goleveldb as the state database. We vary the number of parallel
1111
transactions per chain and observe the performance.
@@ -21,7 +21,7 @@ def test_FAB_3790_VaryNumParallelTxPerChain(self):
2121

2222
def test_FAB_3795_VaryNumChain(self):
2323
'''
24-
In this Performance test, we observe the the performance (time to
24+
In this Performance test, we observe the performance (time to
2525
complete a set number of Ledger operations) of the Ledger component,
2626
with goleveldb as the state database. We vary the number of chains
2727
(ledgers).
@@ -37,7 +37,7 @@ def test_FAB_3795_VaryNumChain(self):
3737

3838
def test_FAB_3798_VaryNumParallelTxWithSingleChain(self):
3939
'''
40-
In this Performance test, we observe the the performance (time to
40+
In this Performance test, we observe the performance (time to
4141
complete a set number of Ledger operations) of the Ledger component,
4242
with goleveldb as the state database. We vary the number of parallel
4343
transactions on a single chain.
@@ -53,7 +53,7 @@ def test_FAB_3798_VaryNumParallelTxWithSingleChain(self):
5353

5454
def test_FAB_3799_VaryNumChainWithNoParallelism(self):
5555
'''
56-
In this Performance test, we observe the the performance (time to
56+
In this Performance test, we observe the performance (time to
5757
complete a set number of Ledger operations) of the Ledger component,
5858
with goleveldb as the state database. We vary the number of chains
5959
without any parallelism within a single chain.
@@ -69,7 +69,7 @@ def test_FAB_3799_VaryNumChainWithNoParallelism(self):
6969

7070
def test_FAB_3801_VaryKVSize(self):
7171
'''
72-
In this Performance test, we observe the the performance (time to
72+
In this Performance test, we observe the performance (time to
7373
complete a set number of Ledger operations) of the Ledger component,
7474
with goleveldb as the state database. We vary the size of key-value.
7575
@@ -84,7 +84,7 @@ def test_FAB_3801_VaryKVSize(self):
8484

8585
def test_FAB_3802_VaryBatchSize(self):
8686
'''
87-
In this Performance test, we observe the the performance (time to
87+
In this Performance test, we observe the performance (time to
8888
complete a set number of Ledger operations) of the Ledger component,
8989
with goleveldb as the state database. We vary the value of the batch
9090
size
@@ -100,7 +100,7 @@ def test_FAB_3802_VaryBatchSize(self):
100100

101101
def test_FAB_3800_VaryNumKeysInEachTX(self):
102102
'''
103-
In this Performance test, we observe the the performance (time to
103+
In this Performance test, we observe the performance (time to
104104
complete a set number of Ledger operations) of the Ledger component,
105105
with goleveldb as the state database. We vary the number of keys in
106106
each transaction.
@@ -116,7 +116,7 @@ def test_FAB_3800_VaryNumKeysInEachTX(self):
116116

117117
def test_FAB_3803_VaryNumTxs(self):
118118
'''
119-
In this Performance test, we observe the the performance (time to
119+
In this Performance test, we observe the performance (time to
120120
complete a set number of Ledger operations) of the Ledger component,
121121
with goleveldb as the state database. We vary the number of
122122
transactions carried out.
@@ -135,7 +135,7 @@ class perf_couchdb(unittest.TestCase):
135135
@unittest.skip("WIP, skipping")
136136
def test_FAB_3870_VaryNumParallelTxPerChain(self):
137137
'''
138-
In this Performance test, we observe the the performance (operations
138+
In this Performance test, we observe the performance (operations
139139
per second) of the Ledger component, with CouchDB as the state
140140
database, as we vary the number of parallel transactions per chain.
141141
'''
@@ -144,7 +144,7 @@ def test_FAB_3870_VaryNumParallelTxPerChain(self):
144144
@unittest.skip("WIP, skipping")
145145
def test_FAB_3871_VaryNumChain(self):
146146
'''
147-
In this Performance test, we observe the the performance (operations
147+
In this Performance test, we observe the performance (operations
148148
per second) of the Ledger component, with CouchDB as the state
149149
database, as we vary the number of chains (ledgers).
150150
'''
@@ -153,7 +153,7 @@ def test_FAB_3871_VaryNumChain(self):
153153
@unittest.skip("WIP, skipping")
154154
def test_FAB_3872_VaryNumParallelTxWithSingleChain(self):
155155
'''
156-
In this Performance test, we observe the the performance (operations
156+
In this Performance test, we observe the performance (operations
157157
per second) of the Ledger component, with CouchDB as the state
158158
database, vary the number of parallel transactions on a single chain.
159159
'''
@@ -162,7 +162,7 @@ def test_FAB_3872_VaryNumParallelTxWithSingleChain(self):
162162
@unittest.skip("WIP, skipping")
163163
def test_FAB_3873_VaryNumChainWithNoParallelism(self):
164164
'''
165-
In this Performance test, we observe the the performance (operations
165+
In this Performance test, we observe the performance (operations
166166
per second) of the Ledger component, with CouchDB as the state
167167
database, as we vary the number of chains without any parallelism.
168168
within a single chain.
@@ -172,7 +172,7 @@ def test_FAB_3873_VaryNumChainWithNoParallelism(self):
172172
@unittest.skip("WIP, skipping")
173173
def test_FAB_3874_VaryKVSize(self):
174174
'''
175-
In this Performance test, we observe the the performance (operations
175+
In this Performance test, we observe the performance (operations
176176
per second) of the Ledger component, with CouchDB as the state
177177
database, varying the size of key-value.
178178
'''
@@ -181,7 +181,7 @@ def test_FAB_3874_VaryKVSize(self):
181181
@unittest.skip("WIP, skipping")
182182
def test_FAB_3875_VaryBatchSize(self):
183183
'''
184-
In this Performance test, we observe the the performance (operations
184+
In this Performance test, we observe the performance (operations
185185
per second) of the Ledger component, with CouchDB as the state
186186
database, as we vary the value of the batch size.
187187
'''
@@ -190,7 +190,7 @@ def test_FAB_3875_VaryBatchSize(self):
190190
@unittest.skip("WIP, skipping")
191191
def test_FAB_3876_VaryNumKeysInEachTX(self):
192192
'''
193-
In this Performance test, we observe the the performance (operations
193+
In this Performance test, we observe the performance (operations
194194
per second) of the Ledger component, with CouchDB as the state
195195
database, as we vary the number of keys in each transaction.
196196
'''
@@ -199,7 +199,7 @@ def test_FAB_3876_VaryNumKeysInEachTX(self):
199199
@unittest.skip("WIP, skipping")
200200
def test_FAB_3877_VaryNumTxs(self):
201201
'''
202-
In this Performance test, we observe the the performance (operations
202+
In this Performance test, we observe the performance (operations
203203
per second) of the Ledger component, with CouchDB as the state
204204
database, as we vary the number of transactions carried out.
205205
'''

0 commit comments

Comments
 (0)