Run gofumpt

This commit is contained in:
9seconds
2022-03-19 14:12:14 +03:00
parent 4b1f823777
commit 8da55410de
12 changed files with 34 additions and 14 deletions
+4 -2
View File
@@ -28,7 +28,8 @@ func (b *baseTelegram) Secret() []byte {
}
func (b *baseTelegram) dial(dc conntypes.DC,
protocol conntypes.ConnectionProtocol) (conntypes.StreamReadWriteCloser, error) {
protocol conntypes.ConnectionProtocol,
) (conntypes.StreamReadWriteCloser, error) {
for _, addr := range b.getAddresses(dc, protocol) {
conn, err := b.dialer.Dial("tcp", addr)
if err != nil {
@@ -74,7 +75,8 @@ func (b *baseTelegram) getAddresses(dc conntypes.DC, protocol conntypes.Connecti
}
func (b *baseTelegram) chooseAddress(addresses map[conntypes.DC][]string,
dc, defaultDC conntypes.DC) string {
dc, defaultDC conntypes.DC,
) string {
addrs, ok := addresses[dc]
if !ok {
addrs = addresses[defaultDC]