Propagate DcUpdateEach setting

This commit is contained in:
9seconds
2026-02-16 15:07:56 +01:00
parent 836a481026
commit 308e372a5d
9 changed files with 22 additions and 12 deletions
+6 -1
View File
@@ -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{}) {