Skip to content

Commit

Permalink
bump version to v0.18.10
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Jul 7, 2024
1 parent 534f52c commit 6af422d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion config/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
Debug = true
BuildVersion = "v0.18.9-BUILD_VERSION"
BuildVersion = "v0.18.10-BUILD_VERSION"
KernelNetworkId = "74c6cdb7d51af57037faa1f5544f8331ced001df5964331911ca51385993b375"

Check warning on line 14 in config/reader.go

View workflow job for this annotation

GitHub Actions / lint

var-naming: const KernelNetworkId should be KernelNetworkID (revive)

SnapshotRoundGap = uint64(3 * time.Second)
Expand Down
20 changes: 0 additions & 20 deletions p2p/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,23 +133,3 @@ func (m *neighborMap) Slice() []*Peer {
}
return peers
}

func (m *neighborMap) Clear() {
m.Lock()
defer m.Unlock()

for id := range m.m {
delete(m.m, id)
}
}

func (m *neighborMap) RunOnce(key crypto.Hash, v *Peer, f func()) {
m.Lock()
defer m.Unlock()

if m.m[key] != nil {
return
}
m.m[key] = v
go f()
}

0 comments on commit 6af422d

Please sign in to comment.