File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ export default class Cache {
125
125
if ( it . value && it . value . modified ) {
126
126
it . value . modified = false
127
127
it . value . val = it . value . val . serialize ( )
128
- this . _trie . put ( Buffer . from ( it . key , 'hex' ) , it . value . val , ( ) => {
128
+ this . _trie . put ( Buffer . from ( it . key , 'hex' ) , it . value . val , ( err : Error ) => {
129
+ if ( err ) return done ( err )
129
130
next = it . hasNext
130
131
it . next ( )
131
132
done ( )
@@ -134,7 +135,8 @@ export default class Cache {
134
135
it . value . modified = false
135
136
it . value . deleted = false
136
137
it . value . val = new Account ( ) . serialize ( )
137
- this . _trie . del ( Buffer . from ( it . key , 'hex' ) , ( ) => {
138
+ this . _trie . del ( Buffer . from ( it . key , 'hex' ) , ( err : Error ) => {
139
+ if ( err ) return done ( err )
138
140
next = it . hasNext
139
141
it . next ( )
140
142
done ( )
You can’t perform that action at this time.
0 commit comments