Skip to content

Commit c7442ef

Browse files
villesundellfjl
authored andcommitted
ethdb, p2p/discover: replace "alloted" with "allotted" (bnb-chain#2785)
1 parent 2b94d7f commit c7442ef

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎ethdb/database.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ import (
3636

3737
var OpenFileLimit = 64
3838

39-
// cacheRatio specifies how the total alloted cache is distributed between the
39+
// cacheRatio specifies how the total allotted cache is distributed between the
4040
// various system databases.
4141
var cacheRatio = map[string]float64{
4242
"dapp": 0.0,
4343
"chaindata": 1.0,
4444
}
4545

46-
// handleRatio specifies how the total alloted file descriptors is distributed
46+
// handleRatio specifies how the total allotted file descriptors is distributed
4747
// between the various system databases.
4848
var handleRatio = map[string]float64{
4949
"dapp": 0.0,
@@ -79,7 +79,7 @@ func NewLDBDatabase(file string, cache int, handles int) (*LDBDatabase, error) {
7979
if handles < 16 {
8080
handles = 16
8181
}
82-
glog.V(logger.Info).Infof("Alloted %dMB cache and %d file handles to %s", cache, handles, file)
82+
glog.V(logger.Info).Infof("Allotted %dMB cache and %d file handles to %s", cache, handles, file)
8383

8484
// Open the db and recover any potential corruptions
8585
db, err := leveldb.OpenFile(file, &opt.Options{

‎p2p/discover/database.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (db *nodeDB) expirer() {
243243
}
244244

245245
// expireNodes iterates over the database and deletes all nodes that have not
246-
// been seen (i.e. received a pong from) for some alloted time.
246+
// been seen (i.e. received a pong from) for some allotted time.
247247
func (db *nodeDB) expireNodes() error {
248248
threshold := time.Now().Add(-nodeDBNodeExpiration)
249249

0 commit comments

Comments
 (0)