mirror of
https://github.com/eosswedenorg/thalos
synced 2026-11-13 06:16:45 +01:00
fix(server): load state with correct pointer
This commit is contained in:
parent
8fa7f79496
commit
7378614f7d
1 changed files with 1 additions and 1 deletions
|
|
@ -166,7 +166,7 @@ func stateLoader(conf *config.Config, start_block_flag *pflag.Flag, chainInfo fu
|
|||
|
||||
// Load state from cache.
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*500)
|
||||
err := cache.Get(ctx, "state", &state)
|
||||
err := cache.Get(ctx, "state", state)
|
||||
cancel()
|
||||
|
||||
// on error (cache miss) or if current_block_no_cache is set.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue