File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
core/src/main/golang/native/tunnel Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 55 "fmt"
66 "time"
77
8- P "github.com/metacubex/mihomo/adapter/provider"
98 "github.com/metacubex/mihomo/constant/provider"
109 "github.com/metacubex/mihomo/log"
1110 "github.com/metacubex/mihomo/tunnel"
@@ -20,6 +19,10 @@ type Provider struct {
2019 UpdatedAt int64 `json:"updatedAt"`
2120}
2221
22+ type UpdatableProvider interface {
23+ UpdatedAt () time.Time
24+ }
25+
2326func QueryProviders () []* Provider {
2427 r := tunnel .RuleProviders ()
2528 p := tunnel .Providers ()
@@ -47,7 +50,7 @@ func QueryProviders() []*Provider {
4750 for _ , p := range providers {
4851 updatedAt := time.Time {}
4952
50- if s , ok := p .(P. UpdatableProvider ); ok {
53+ if s , ok := p .(UpdatableProvider ); ok {
5154 updatedAt = s .UpdatedAt ()
5255 }
5356
You can’t perform that action at this time.
0 commit comments