From 340efef2d848974af8b1830d61361c71d264ec8f Mon Sep 17 00:00:00 2001 From: "Maze.tsz" Date: Fri, 26 Nov 2021 00:57:36 +0800 Subject: [PATCH] Revert "[test] rule providers" This reverts commit 14af94205c1ecb0ae2ed99de8c8398e75b157578. --- constant/provider/interface.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/constant/provider/interface.go b/constant/provider/interface.go index 7f1bda42..da03033b 100644 --- a/constant/provider/interface.go +++ b/constant/provider/interface.go @@ -2,6 +2,7 @@ package provider import "C" import ( + "errors" "github.com/Dreamacro/clash/component/trie" "github.com/Dreamacro/clash/constant" ) @@ -107,6 +108,10 @@ type RuleProvider interface { } var ( + parse = func(ruleType, rule string, params []string) (C.Rule, error) { + return nil, errors.New("unimplemented function") + } + ruleProviders = map[string]*RuleProvider{} )