Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/bft/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (c *Controller) HandleRequest(sender uint64, req []byte) {
c.addRequest(reqInfo, req)
}

// SubmitRequest Submits a request to go through consensus.
// SubmitRequest submits a request to go through consensus.
func (c *Controller) SubmitRequest(request []byte) error {
info := c.RequestInspector.RequestID(request)
return c.addRequest(info, request)
Expand Down
8 changes: 4 additions & 4 deletions internal/bft/requestpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const (
defaultRequestTimeout = 10 * time.Second // for unit tests only
defaultMaxBytes = 100 * 1024 // default max request size would be of size 100Kb
defaultSizeOfDelElements = 1000 // default size slice of delete elements
defaultEraseTimeout = 5 * time.Second // for cicle erase silice of delete elements
defaultEraseTimeout = 5 * time.Second // for cycle erase silice of delete elements
)

var (
Expand All @@ -46,9 +46,9 @@ type RequestTimeoutHandler interface {
OnAutoRemoveTimeout(requestInfo types.RequestInfo)
}

// Pool implements requests pool, maintains pool of given size provided during
// construction. In case there are more incoming request than given size it will
// block during submit until there will be place to submit new ones.
// Pool implements a requests pool, maintaining a pool of a given size provided during
// construction. If there are more incoming requests than the given size, it will
// block during submission until there is space to submit new ones.
type Pool struct {
logger api.Logger
metrics *api.MetricsRequestPool
Expand Down
2 changes: 1 addition & 1 deletion internal/bft/viewchanger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ type change struct {
stopView bool
}

// ViewChanger is responsible for running the view change protocol
// ViewChanger is responsible for running the view change protocol.
type ViewChanger struct {
// Configuration
SelfID uint64
Expand Down