diff --git a/main.go b/main.go index 640cbab853647ddedf899b5babb5e496fd44191a..6d4eadab3b0382d9636aa67d63d367e8aaa7153a 100644 --- a/main.go +++ b/main.go @@ -184,7 +184,7 @@ func SendToUserCenter(sendUserId uint64, msg *userProxy.GlobalGiftBanner) { //广播 func broadcast(msgType uint32, data []byte) ([]uint64, error) { - ctx, cancel := context.WithTimeout(context.Background(), time.Second*3) + ctx, cancel := context.WithTimeout(context.Background(), time.Second*10) defer cancel() rsp, err := userClient.Broadcast(ctx, &userCenter.BroadcastMessage{ MsgType: msgType,