Browse Source

Fixes for newer grpc versions

Giulio Girardi 4 năm trước cách đây
mục cha
commit
30640f2629
2 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 2 2
      src/grpc/qgrpcchannel.cpp
  2. 2 2
      src/grpc/qgrpcchannel_p.h

+ 2 - 2
src/grpc/qgrpcchannel.cpp

@@ -40,7 +40,7 @@
 #include <grpcpp/impl/codegen/rpc_method.h>
 #include <grpcpp/impl/codegen/slice.h>
 #include <grpcpp/impl/codegen/status.h>
-#include <grpcpp/impl/codegen/sync_stream_impl.h>
+#include <grpcpp/impl/codegen/sync_stream.h>
 #include <grpcpp/security/credentials.h>
 
 #include "qabstractgrpccredentials.h"
@@ -83,7 +83,7 @@ QGrpcChannelSubscription::QGrpcChannelSubscription(grpc::Channel *channel, const
     grpc::ByteBuffer request;
     parseQByteArray(data, request);
 
-    reader = grpc_impl::internal::ClientReaderFactory<grpc::ByteBuffer>::Create(channel,
+    reader = grpc::internal::ClientReaderFactory<grpc::ByteBuffer>::Create(channel,
         grpc::internal::RpcMethod(method.toStdString().c_str(), grpc::internal::RpcMethod::SERVER_STREAMING),
         &context, request);
 

+ 2 - 2
src/grpc/qgrpcchannel_p.h

@@ -29,7 +29,7 @@
 #include <grpcpp/channel.h>
 #include <grpcpp/impl/codegen/byte_buffer.h>
 #include <grpcpp/impl/codegen/client_context.h>
-#include <grpcpp/impl/codegen/sync_stream_impl.h>
+#include <grpcpp/impl/codegen/sync_stream.h>
 #include <grpcpp/security/credentials.h>
 
 #include "qabstractgrpccredentials.h"
@@ -64,7 +64,7 @@ public:
 private:
     QThread *thread;
     grpc::ClientContext context;
-    grpc_impl::ClientReader<grpc::ByteBuffer> *reader = nullptr;
+    grpc::ClientReader<grpc::ByteBuffer> *reader = nullptr;
 };
 
 //! \private