Make rule-set initialization parallel

This commit is contained in:
世界
2023-11-30 15:28:08 +08:00
parent bbc1d12015
commit cbe2848d8f
7 changed files with 93 additions and 22 deletions

View File

@@ -1,6 +1,7 @@
package route
import (
"context"
"os"
"github.com/sagernet/sing-box/adapter"
@@ -60,7 +61,7 @@ func (s *LocalRuleSet) Match(metadata *adapter.InboundContext) bool {
return false
}
func (s *LocalRuleSet) Start() error {
func (s *LocalRuleSet) StartContext(ctx context.Context, startContext adapter.RuleSetStartContext) error {
return nil
}