🐛 Fix grpc namespace conflict

This commit is contained in:
2024-10-31 22:40:10 +08:00
parent c3619f6d25
commit d1f1183beb
6 changed files with 80 additions and 75 deletions

View File

@ -19,7 +19,7 @@ func NotifyUser(nx *nex.Conn, userId uint64, notify pushkit.Notification, unsave
}
_, err = proto.NewNotifyServiceClient(conn).NotifyUser(nil, &proto.NotifyUserRequest{
UserId: userId,
Notify: &proto.NotifyInfo{
Notify: &proto.NotifyInfoPayload{
Unsaved: unsaved[0],
Data: raw,
},
@ -38,7 +38,7 @@ func NotifyUserBatch(nx *nex.Conn, userId []uint64, notify pushkit.Notification,
}
_, err = proto.NewNotifyServiceClient(conn).NotifyUserBatch(nil, &proto.NotifyUserBatchRequest{
UserId: userId,
Notify: &proto.NotifyInfo{
Notify: &proto.NotifyInfoPayload{
Unsaved: unsaved[0],
Data: raw,
},