swarm/state: refactor InmemoryStore (#18143)

This commit is contained in:
Anton Evangelatov
2018-11-21 14:36:56 +01:00
committed by GitHub
parent 3fd87f2193
commit 4c181e4fb9
5 changed files with 24 additions and 123 deletions

View File

@@ -64,12 +64,12 @@ func init() {
type Simulation struct {
mtx sync.Mutex
stores map[enode.ID]*state.InmemoryStore
stores map[enode.ID]state.Store
}
func NewSimulation() *Simulation {
return &Simulation{
stores: make(map[enode.ID]*state.InmemoryStore),
stores: make(map[enode.ID]state.Store),
}
}