… | |
… | |
219 | # switch to global mode |
219 | # switch to global mode |
220 | |
220 | |
221 | # regularly try to connect to global nodes - maybe use seeding code? |
221 | # regularly try to connect to global nodes - maybe use seeding code? |
222 | $MASTER_TIMER = AE::timer 0, $AnyEvent::MP::Kernel::CONFIG->{monitor_timeout}, sub { |
222 | $MASTER_TIMER = AE::timer 0, $AnyEvent::MP::Kernel::CONFIG->{monitor_timeout}, sub { |
223 | (add_node $_)->connect |
223 | (add_node $_)->connect |
224 | for keys %{ $GLOBAL_DB{"'g"} }; |
224 | for other_globals; |
225 | }; |
225 | }; |
226 | |
226 | |
227 | # instantly connect to other global nodes when we learn of them |
227 | # instantly connect to other global nodes when we learn of them |
228 | # so we don't have to wait for the timer. |
228 | # so we don't have to wait for the timer. |
229 | #TODO |
229 | #TODO |