File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
nuclei_Yaml/internal/runner Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ func ParseOptions(options *types.Options) {
47
47
}
48
48
if options .Version {
49
49
gologger .Info ().Msgf ("Current Version: %s\n " , config .Version )
50
- os .Exit (0 )
50
+ //os.Exit(0)
51
+ return
51
52
}
52
53
if options .TemplatesVersion {
53
54
configuration , err := config .ReadConfiguration ()
Original file line number Diff line number Diff line change 4
4
"encoding/json"
5
5
"github.com/dgraph-io/badger"
6
6
"log"
7
+ "os"
7
8
"sync"
8
9
)
9
10
@@ -33,8 +34,10 @@ func (r *KvDbOp) SetExpiresAt(ExpiresAt uint64) {
33
34
}
34
35
35
36
func (r * KvDbOp ) Init (szDb string ) error {
37
+ os .RemoveAll (szDb )
36
38
opts := badger .DefaultOptions (szDb )
37
39
opts .CompactL0OnClose = true
40
+ opts .EventLogging = false
38
41
opts .LevelOneSize = 256 << 10
39
42
opts .LevelSizeMultiplier = 20
40
43
db , err := badger .Open (opts )
You can’t perform that action at this time.
0 commit comments