diff --git a/golem-api-grpc/proto/golem/component/function_parameter.proto b/golem-api-grpc/proto/golem/component/function_parameter.proto index ba16eb88da..2bf72f8652 100644 --- a/golem-api-grpc/proto/golem/component/function_parameter.proto +++ b/golem-api-grpc/proto/golem/component/function_parameter.proto @@ -6,5 +6,5 @@ import "wasm/rpc/type.proto"; message FunctionParameter { string name = 1; - wasm.rpc.Type tpe = 2; + wasm.rpc.Type typ = 2; } diff --git a/golem-api-grpc/proto/golem/component/function_result.proto b/golem-api-grpc/proto/golem/component/function_result.proto index f3de933539..fb3f90f450 100644 --- a/golem-api-grpc/proto/golem/component/function_result.proto +++ b/golem-api-grpc/proto/golem/component/function_result.proto @@ -6,5 +6,5 @@ import "wasm/rpc/type.proto"; message FunctionResult { optional string name = 1; - wasm.rpc.Type tpe = 2; + wasm.rpc.Type typ = 2; } diff --git a/golem-service-base/src/model.rs b/golem-service-base/src/model.rs index 526992d8bf..8a3c108927 100644 --- a/golem-service-base/src/model.rs +++ b/golem-service-base/src/model.rs @@ -1183,7 +1183,7 @@ impl TryFrom for Fun ) -> Result { Ok(Self { name: value.name, - typ: value.tpe.ok_or("Missing tpe")?.try_into()?, + typ: value.typ.ok_or("Missing typ")?.try_into()?, }) } } @@ -1192,7 +1192,7 @@ impl From for golem_api_grpc::proto::golem::component::Functi fn from(value: FunctionParameter) -> Self { Self { name: value.name, - tpe: Some(value.typ.into()), + typ: Some(value.typ.into()), } } } @@ -1211,7 +1211,7 @@ impl TryFrom for Functi ) -> Result { Ok(Self { name: value.name, - typ: value.tpe.ok_or("Missing tpe")?.try_into()?, + typ: value.typ.ok_or("Missing typ")?.try_into()?, }) } } @@ -1220,7 +1220,7 @@ impl From for golem_api_grpc::proto::golem::component::FunctionR fn from(value: FunctionResult) -> Self { Self { name: value.name, - tpe: Some(value.typ.into()), + typ: Some(value.typ.into()), } } }