File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -517,13 +517,13 @@ func (s *state) updateFile(file string) (bool, error) {
517
517
}
518
518
519
519
log .Infof ("new cache file: Updating sha256 hash %x -> %x" , s .lasthashCache , hsum )
520
+ s .lasthashCache = hsum
520
521
521
522
rpkilistjson , err := decodeJSON (data )
522
523
if err != nil {
523
524
return false , err
524
525
}
525
526
526
- s .lasthashCache = hsum
527
527
s .lastchange = time .Now ().UTC ()
528
528
s .lastdata = rpkilistjson
529
529
@@ -550,14 +550,15 @@ func (s *state) updateSlurm(file string) (bool, error) {
550
550
return false , IdenticalFile {File : file }
551
551
}
552
552
}
553
+ log .Infof ("new slurm file: Updating sha256 hash %x -> %x" , s .lasthashCache , hsum )
554
+ s .lasthashSlurm = hsum
553
555
554
556
buf := bytes .NewBuffer (data )
555
557
556
558
slurm , err := prefixfile .DecodeJSONSlurm (buf )
557
559
if err != nil {
558
560
return false , err
559
561
}
560
- s .lasthashSlurm = hsum
561
562
s .slurm = slurm
562
563
return true , nil
563
564
}
@@ -664,12 +665,12 @@ func (s *state) exporter(wr http.ResponseWriter, r *http.Request) {
664
665
}
665
666
666
667
type state struct {
667
- lastdata * prefixfile.RPKIList
668
- lasthashCache []byte
669
- lasthashSlurm []byte
670
- lastchange time.Time
671
- lastts time.Time
672
- sendNotifs bool
668
+ lastdata * prefixfile.RPKIList
669
+ lasthashCache []byte
670
+ lasthashSlurm []byte
671
+ lastchange time.Time
672
+ lastts time.Time
673
+ sendNotifs bool
673
674
674
675
fetchConfig * utils.FetchConfig
675
676
You can’t perform that action at this time.
0 commit comments