File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ func encode(items []silo.DataNode) ([]byte, error) {
6868}
6969
7070type  Snapshot  struct  {
71- 	db  * pebble.Batch 
71+ 	db  * pebble.DB 
7272}
7373
7474func  (s  Snapshot ) Next () (silo.DataNode , bool , error ) {
@@ -120,10 +120,6 @@ func (s Snapshot) PullAll(node silo.DataNode) ([]silo.DataNode, error) {
120120}
121121
122122func  (s  Snapshot ) Close () error  {
123- 	if  err  :=  s .db .Close (); err  !=  nil  {
124- 		return  fmt .Errorf ("%w" , err )
125- 	}
126- 
127123	return  nil 
128124}
129125
@@ -175,7 +171,7 @@ func (b Backend) Store(key silo.DataNode, value silo.DataNode) error {
175171}
176172
177173func  (b  Backend ) Snapshot () silo.Snapshot  { //nolint:ireturn 
178- 	return  Snapshot { b . db . NewIndexedBatch ()} 
174+ 	return  Snapshot ( b ) 
179175}
180176
181177func  (b  Backend ) Close () error  {
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments