fix stay_awake.rs

This commit is contained in:
Horhik 2021-04-28 18:31:33 +03:00
parent 9a8deb4c98
commit 2ee973e63b

View file

@ -31,7 +31,7 @@ pub async fn request_repeater(ss: SP, conn: Pool<SqliteConnectionManager>) -> io
let key = USK {
ssk: parsed.private_key.clone(),
path: format!("{}/{}", &id, &index + 2),
path: format!("{}/{}", &id, &index),
};
log::debug!("sending {:?}", &key.convert());
match ss.send(PackedMessage::ToFreenet(
@ -39,7 +39,7 @@ pub async fn request_repeater(ss: SP, conn: Pool<SqliteConnectionManager>) -> io
KEY::USK(
key
),
&format!("new-message-{}/{}", &id, &index + 2)[..], // TODO create Identifier type
&format!("new-message-{}/{}", &id, &index)[..], // TODO create Identifier type
ReturnType::Direct,
)
.convert(),