Skip to content

Message Delay Issue #164

Open
Open
@juzi-code

Description

@juzi-code

In my development process, I've noticed that messages from public channels are consistently delayed for a long time before being received, while messages from private channels are received without any delay. Do you know why this happens? Are there any solutions?

func (a *TDClient) UpdateListener(messageHandler func(updateType string, message client.Message)) {
	updates := a.Client.GetListener().Updates
	// 接收并处理通道中的数据
	go func() {
		for data := range updates {
			updateType := data.GetType()
			if updateMsg, ok := data.(*client.UpdateNewMessage); ok {
				messageHandler(updateType, *updateMsg.Message)
			}
		}
	}()
}

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions