Skip to content

Commit

Permalink
修复 Protobuf v26.x 破坏性更新导致无法解析错误信息
Browse files Browse the repository at this point in the history
在生成的代码中 com.google.rpc.Status 继承 com.google.protobuf.GeneratedMessageV3,但 GeneratedMessageV3 却被移除,导致 Status 无法正常解析

https://protobuf.dev/news/2023-12-05/
  • Loading branch information
aaa1115910 committed May 14, 2024
1 parent 8511f43 commit 158759e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package dev.aaa1115910.biliapi.grpc.utils

import bilibili.rpc.Status
import com.google.protobuf.Message
import com.google.rpc.Status
//import com.google.rpc.Status
import io.grpc.Metadata
import io.grpc.StatusException

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dev.aaa1115910.biliapi.repositories

import com.google.rpc.Status
import bilibili.rpc.Status
//import com.google.rpc.Status
import dev.aaa1115910.biliapi.entity.ApiType
import dev.aaa1115910.biliapi.entity.video.HeartbeatVideoType
import dev.aaa1115910.biliapi.grpc.utils.getDetail
Expand Down

0 comments on commit 158759e

Please sign in to comment.