File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,11 @@ func NewLocalSystem(cfg *config.Config) (*LocalSystem, error) {
47
47
return nil , errors .New ("the system was unable to build the pool of trusted resolvers" )
48
48
}
49
49
50
- pool , num := untrustedResolvers (cfg )
50
+ pool , num := trusted , num
51
+ if ! cfg .Passive {
52
+ pool , num = untrustedResolvers (cfg )
53
+ }
54
+
51
55
if pool == nil || num == 0 {
52
56
return nil , errors .New ("the system was unable to build the pool of untrusted resolvers" )
53
57
}
@@ -220,6 +224,9 @@ func (l *LocalSystem) setupGraphDBs() error {
220
224
}
221
225
dbs = append (dbs , cfg .GraphDBs ... )
222
226
227
+ if cfg .Passive {
228
+ l .graphs = append (l .graphs , netmap .NewGraph (netmap .NewCayleyGraphMemory ()))
229
+ }
223
230
for _ , db := range dbs {
224
231
cayley := netmap .NewCayleyGraph (db .System , db .URL , db .Options )
225
232
if cayley == nil {
You can’t perform that action at this time.
0 commit comments