mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
Remove unused sync.map
This commit is contained in:
parent
4459ee0f55
commit
434963f2c9
1 changed files with 0 additions and 6 deletions
|
|
@ -19,7 +19,6 @@ type Client struct {
|
|||
listenerStore *listenerStore
|
||||
catchersStore *sync.Map
|
||||
successMsgStore *sync.Map
|
||||
forwardMsgStore *sync.Map
|
||||
updatesTimeout time.Duration
|
||||
catchTimeout time.Duration
|
||||
}
|
||||
|
|
@ -75,7 +74,6 @@ func NewClient(authorizationStateHandler AuthorizationStateHandler, options ...O
|
|||
listenerStore: newListenerStore(),
|
||||
catchersStore: &sync.Map{},
|
||||
successMsgStore: &sync.Map{},
|
||||
forwardMsgStore: &sync.Map{},
|
||||
}
|
||||
|
||||
client.extraGenerator = UuidV4Generator()
|
||||
|
|
@ -116,10 +114,6 @@ func (client *Client) processResponse(response *Response) {
|
|||
if sOk {
|
||||
sendVal.(chan *Response) <- response
|
||||
}
|
||||
forwardVal, fOk := client.forwardMsgStore.Load(typ.(*UpdateMessageSendSucceeded).OldMessageId)
|
||||
if fOk {
|
||||
forwardVal.(chan *Response) <- response
|
||||
}
|
||||
}
|
||||
|
||||
if len(client.listenerStore.Listeners()) == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue