mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-01 09:34:02 +03:00
Propagate DcUpdateEach setting
This commit is contained in:
+6
-1
@@ -324,7 +324,12 @@ func NewProxy(opts ProxyOpts) (*Proxy, error) {
|
||||
telegram: tg,
|
||||
}
|
||||
|
||||
go tg.Run(ctx, 0) // TODO: propagate value
|
||||
dcUpdateEach := opts.DCUpdateEach
|
||||
if dcUpdateEach == 0 {
|
||||
dcUpdateEach = DefaultDCUpdateEach
|
||||
}
|
||||
|
||||
go tg.Run(ctx, dcUpdateEach)
|
||||
|
||||
pool, err := ants.NewPoolWithFunc(opts.getConcurrency(),
|
||||
func(arg interface{}) {
|
||||
|
||||
Reference in New Issue
Block a user