Skip to content

Commit c2aa4e6

Browse files
committed
Format godoc
1 parent e301969 commit c2aa4e6

79 files changed

Lines changed: 286 additions & 286 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

blockproducer/chain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ func (c *Chain) getLocalBPInfo() *blockProducerInfo {
922922
return c.localBPInfo
923923
}
924924

925-
// getRemoteBPInfos remove this node from the peer list
925+
// getRemoteBPInfos remove this node from the peer list.
926926
func (c *Chain) getRemoteBPInfos() (remoteBPInfos []*blockProducerInfo) {
927927
var localBPInfo, bpInfos = func() (*blockProducerInfo, []*blockProducerInfo) {
928928
c.RLock()

blockproducer/interfaces/mixins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func (m *TransactionTypeMixin) SetTransactionType(t TransactionType) {
4949
m.TxType = t
5050
}
5151

52-
// GetTimestamp implements Transaciton.GetTimestamp()
52+
// GetTimestamp implements Transaciton.GetTimestamp().
5353
func (m *TransactionTypeMixin) GetTimestamp() time.Time {
5454
return m.Timestamp
5555
}

blockproducer/interfaces/transaction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type TransactionState uint32
119119
// x |
120120
// | +------------------------------------[ Expire ]--> Expired
121121
// |
122-
// +----------------------------------------------------------------------> Not Found
122+
// +----------------------------------------------------------------------> Not Found.
123123
const (
124124
TransactionStatePending TransactionState = iota
125125
TransactionStatePacked

blockproducer/metastate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ type metaState struct {
4646
dirty, readonly *metaIndex
4747
}
4848

49-
// MinerInfos is MinerInfo array
49+
// MinerInfos is MinerInfo array.
5050
type MinerInfos []*types.MinerInfo
5151

5252
// Len returns the length of the uints array.

client/conn.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ type conn struct {
5151
follower *pconn
5252
}
5353

54-
// pconn represents a connection to a peer
54+
// pconn represents a connection to a peer.
5555
type pconn struct {
5656
parent *conn
5757
ackCh chan *types.Ack

client/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func Create(meta ResourceMeta) (dsn string, err error) {
210210
return
211211
}
212212

213-
// WaitDBCreation waits for database creation complete
213+
// WaitDBCreation waits for database creation complete.
214214
func WaitDBCreation(ctx context.Context, dsn string) (err error) {
215215
dsnCfg, err := ParseDSN(dsn)
216216
if err != nil {

client/helper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var (
5454
stubNextNonce pi.AccountNonce = 1
5555
)
5656

57-
// fake BPDB service
57+
// fake BPDB service.
5858
type stubBPService struct{}
5959

6060
func (s *stubBPService) QueryAccountTokenBalance(req *types.QueryAccountTokenBalanceReq,

client/tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/pkg/errors"
2626
)
2727

28-
// ExecuteTx starts a transaction, and runs fn in it
28+
// ExecuteTx starts a transaction, and runs fn in it.
2929
func ExecuteTx(
3030
ctx context.Context, db *sql.DB, txopts *sql.TxOptions, fn func(*sql.Tx) error,
3131
) error {

cmd/cql-adapter/storage/storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type Storage interface {
3333
Exec(dbID string, query string, args ...interface{}) (affectedRows int64, lastInsertID int64, err error)
3434
}
3535

36-
// golang does trick convert, use rowScanner to return the original result type in sqlite3 driver
36+
// golang does trick convert, use rowScanner to return the original result type in sqlite3 driver.
3737
type rowScanner struct {
3838
fieldCnt int
3939
column int // current column

cmd/cql-fuse/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func min(a, b uint64) uint64 {
5151

5252
// blockRange describes a range of blocks.
5353
// If the first and last block are the same, the effective data range
54-
// will be: [startOffset, lastLength)
54+
// will be: [startOffset, lastLength).
5555
type blockRange struct {
5656
start int // index of the start block
5757
startOffset uint64 // starting offset within the first block

0 commit comments

Comments
 (0)