chore: Take the ownership in the CommandRunner trait
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -34,7 +34,7 @@ pub struct ViewArgs {
|
||||
}
|
||||
|
||||
impl CommandRunner for ViewArgs {
|
||||
async fn run(&self, options: CliOptions) -> N34Result<()> {
|
||||
async fn run(self, options: CliOptions) -> N34Result<()> {
|
||||
let client = NostrClient::init(&options).await;
|
||||
if !self.naddr.relays.is_empty() {
|
||||
client.add_read_relays(&self.naddr.relays).await;
|
||||
|
||||
Reference in New Issue
Block a user