You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
457 B

package pool
import "go.uber.org/zap"
// DCOptions is a Telegram data center connections pool options.
type DCOptions struct {
// Logger is instance of zap.Logger. No logs by default.
Logger *zap.Logger
// MTProto options for connections.
// Opened connection limit to the DC.
MaxOpenConnections int64
}
func (d *DCOptions) setDefaults() {
if d.Logger == nil {
d.Logger = zap.NewNop()
}
// It's okay to use zero value for MaxOpenConnections.
}