From a6f9d8867bc7071cc34fd0d2f3acff4d2be704b4 Mon Sep 17 00:00:00 2001 From: Enkidu93 Date: Thu, 14 Sep 2023 14:01:24 -0400 Subject: [PATCH] MInor changes to options field --ECL --- src/Serval.Grpc/Protos/serval/translation/v1/engine.proto | 2 +- src/Serval.Translation/Services/EngineService.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Serval.Grpc/Protos/serval/translation/v1/engine.proto b/src/Serval.Grpc/Protos/serval/translation/v1/engine.proto index c0cb37f0..08f258fb 100644 --- a/src/Serval.Grpc/Protos/serval/translation/v1/engine.proto +++ b/src/Serval.Grpc/Protos/serval/translation/v1/engine.proto @@ -60,7 +60,7 @@ message StartBuildRequest { string engine_type = 1; string engine_id = 2; string build_id = 3; - string options = 4; + optional string options = 4; repeated Corpus corpora = 5; } diff --git a/src/Serval.Translation/Services/EngineService.cs b/src/Serval.Translation/Services/EngineService.cs index c0acaea6..c5ef2cbd 100644 --- a/src/Serval.Translation/Services/EngineService.cs +++ b/src/Serval.Translation/Services/EngineService.cs @@ -197,7 +197,7 @@ public async Task StartBuildAsync(Build build, CancellationToken cancellat EngineType = engine.Type, EngineId = engine.Id, BuildId = build.Id, - Options = build.Options, + Options = build.Options ?? "", Corpora = { engine.Corpora.Select(c =>