Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
AmarnathCJD committed Sep 7, 2024
1 parent 4ca7b39 commit 3ac027f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions internal/transport/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ import (
"time"
)

const (
DefaultTimeout = 5 * time.Second
)
const DefaultTimeout = 5 * time.Second

func dialProxy(s *url.URL, address string) (net.Conn, error) {
switch s.Scheme {
Expand Down
4 changes: 4 additions & 0 deletions telegram/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ func (c *Client) SetAppHash(appHash string) {
c.clientData.appHash = appHash
}

// func (c *Client) SetTcpConnection(conn *net.TCPConn) {
// c.MTProto.SetTcpConnection(conn)
// }

func (c *Client) Me() *UserObj {
return c.clientData.me
}
Expand Down

0 comments on commit 3ac027f

Please sign in to comment.