Skip to content

Cannot use object of type Hyperf\GrpcClient\UnaryCall as array[38] #31

Description

@ddouvsnniu

public function sayHello(HiUser $argument)
{
return $this->_simpleRequest(
'/grpc.Hi/SayHello',
$argument,
[HiReply::class, 'decode']
);
}

list($reply, $status) = $client->sayHello($request);

更新一下wiki吧,已经不能这样用了。
看了代码才知道要加wait()。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions