Remove integration with gotd

This commit is contained in:
9seconds
2026-02-16 16:30:10 +01:00
parent 82679ec20f
commit 8e87405d3e
14 changed files with 14 additions and 208 deletions
+1 -10
View File
@@ -300,9 +300,7 @@ func NewProxy(opts ProxyOpts) (*Proxy, error) {
return nil, fmt.Errorf("invalid settings: %w", err)
}
logger := opts.getLogger("proxy")
tg, err := dc.New(logger.Named("telegram"), opts.getPreferIP(), opts.DCOverrides)
tg, err := dc.New(opts.getPreferIP(), opts.DCOverrides)
if err != nil {
return nil, fmt.Errorf("cannot build telegram dc fetcher: %w", err)
}
@@ -324,13 +322,6 @@ func NewProxy(opts ProxyOpts) (*Proxy, error) {
telegram: tg,
}
dcUpdateEach := opts.DCUpdateEach
if dcUpdateEach == 0 {
dcUpdateEach = DefaultDCUpdateEach
}
go tg.Run(ctx, dcUpdateEach)
pool, err := ants.NewPoolWithFunc(opts.getConcurrency(),
func(arg interface{}) {
proxy.ServeConn(arg.(essentials.Conn)) //nolint: forcetypeassert