Skip to content

Commit

Permalink
naming fix - tpe -> typ
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoon committed Jul 2, 2024
1 parent c892d84 commit 9a0b9d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ import "wasm/rpc/type.proto";

message FunctionParameter {
string name = 1;
wasm.rpc.Type tpe = 2;
wasm.rpc.Type typ = 2;
}
2 changes: 1 addition & 1 deletion golem-api-grpc/proto/golem/component/function_result.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
8 changes: 4 additions & 4 deletions golem-service-base/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ impl TryFrom<golem_api_grpc::proto::golem::component::FunctionParameter> for Fun
) -> Result<Self, Self::Error> {
Ok(Self {
name: value.name,
typ: value.tpe.ok_or("Missing tpe")?.try_into()?,
typ: value.typ.ok_or("Missing typ")?.try_into()?,
})
}
}
Expand All @@ -1192,7 +1192,7 @@ impl From<FunctionParameter> 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()),
}
}
}
Expand All @@ -1211,7 +1211,7 @@ impl TryFrom<golem_api_grpc::proto::golem::component::FunctionResult> for Functi
) -> Result<Self, Self::Error> {
Ok(Self {
name: value.name,
typ: value.tpe.ok_or("Missing tpe")?.try_into()?,
typ: value.typ.ok_or("Missing typ")?.try_into()?,
})
}
}
Expand All @@ -1220,7 +1220,7 @@ impl From<FunctionResult> 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()),
}
}
}
Expand Down

0 comments on commit 9a0b9d0

Please sign in to comment.