diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2023-11-01 00:00:00 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2023-11-01 00:00:00 +0000 |
| commit | 36de3b05e61130f0c279419edeac8bba534a3791 (patch) | |
| tree | a39ebfeeec4676bb81ff96fab1f027de66efcf0e /src/sub_commands/claim.rs | |
| parent | 03bb9ef8c419273681199eb6e85c82fe0e4f3d51 (diff) | |
refactor(claim) remove setter flow
we dont need to th verbose of getters and setters for this right now
Diffstat (limited to 'src/sub_commands/claim.rs')
| -rw-r--r-- | src/sub_commands/claim.rs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/sub_commands/claim.rs b/src/sub_commands/claim.rs index cb6e99d..9a38f56 100644 --- a/src/sub_commands/claim.rs +++ b/src/sub_commands/claim.rs | |||
| @@ -67,12 +67,13 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 67 | 67 | ||
| 68 | println!("publishing repostory reference..."); | 68 | println!("publishing repostory reference..."); |
| 69 | 69 | ||
| 70 | let repo_event = RepoRef::default() | 70 | let repo_event = RepoRef { |
| 71 | .set_name(name) | 71 | name, |
| 72 | .set_description(description) | 72 | description, |
| 73 | .set_root_commit(root_commit.to_string()) | 73 | root_commit: root_commit.to_string(), |
| 74 | .set_relays(repo_relays.clone()) | 74 | relays: repo_relays.clone(), |
| 75 | .to_event(&keys)?; | 75 | } |
| 76 | .to_event(&keys)?; | ||
| 76 | 77 | ||
| 77 | send_events( | 78 | send_events( |
| 78 | &client, | 79 | &client, |