-
Notifications
You must be signed in to change notification settings - Fork 44
Fixed gRPC some errors #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
barrierId 应该为每个请求多次调用进行累加 |
|
中间件我没使用 gRPC 下使用中间件会出现一些问题,handle 会执行两次,修起来比较麻烦 |
|
目前gRPC 还是跑不通的 涉及到 hyperf 那边 gRPC Server 和 gRPC Client 的修改 |
|
我晚点再去 hyperf 那边把 server 和 client 修一下 |
src/TransContext.php
Outdated
| public static function getOp(): string | ||
| { | ||
| return static::get(static::class . '.op'); | ||
| return static::get(static::class . '.op', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的OP会为空吗
src/TransContext.php
Outdated
| public static function getTransType(): string | ||
| { | ||
| return static::get(static::class . '.transType'); | ||
| return static::get(static::class . '.transType', ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里事务类型什么时候会为空
src/MySqlBarrier.php
Outdated
| $op = TransContext::getOp(); | ||
|
|
||
| $barrierID = ++$this->barrierId; | ||
| $barrierID = $this->barrierId + 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这块是不是也放到上下文里面去会更好
No description provided.