diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h --- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.h +++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.h @@ -13,26 +13,26 @@ public: BackupServiceImpl(); virtual ~BackupServiceImpl(); - /* - grpc::Status CreateNewBackup( - grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) override; - grpc::Status SendLog( - grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) override; - grpc::Status PullBackupKey( - grpc::ServerContext *context, - grpc::ServerReaderWriter< - backup::PullBackupKeyResponse, - backup::PullBackupKeyRequest> *stream) override; - grpc::Status PullCompaction( - grpc::ServerContext *context, - grpc::ServerReaderWriter< - backup::PullCompactionResponse, - backup::PullCompactionRequest> *stream) override; - */ + + grpc::Status CreateNewBackup( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::CreateNewBackupResponse, + backup::CreateNewBackupRequest> *stream) override; + grpc::Status SendLog( + grpc::ServerContext *context, + grpc::ServerReader *reader, + google::protobuf::Empty *response) override; + grpc::Status PullBackupKey( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::PullBackupKeyResponse, + backup::PullBackupKeyRequest> *stream) override; + grpc::Status PullCompaction( + grpc::ServerContext *context, + grpc::ServerReaderWriter< + backup::PullCompactionResponse, + backup::PullCompactionRequest> *stream) override; }; } // namespace network diff --git a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp --- a/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp +++ b/services/backup/docker-server/contents/server/src/BackupServiceImpl.cpp @@ -12,11 +12,12 @@ BackupServiceImpl::~BackupServiceImpl() { Aws::ShutdownAPI({}); } -/* + grpc::Status BackupServiceImpl::CreateNewBackup( grpc::ServerContext *context, - grpc::ServerReader *reader, - google::protobuf::Empty *response) { + grpc::ServerReaderWriter< + backup::CreateNewBackupResponse, + backup::CreateNewBackupRequest> *stream) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } @@ -42,6 +43,6 @@ backup::PullCompactionRequest> *stream) { return grpc::Status(grpc::StatusCode::UNIMPLEMENTED, "not implemented yet"); } -*/ + } // namespace network } // namespace comm