fix(router): fix refunds and payment_attempts kv flow (#2362)

This commit is contained in:
Sai Harsha Vardhan
2023-09-26 13:41:15 +05:30
committed by GitHub
parent 3d7e22a4f1
commit ef0df7195d
3 changed files with 3 additions and 23 deletions

View File

@ -68,13 +68,3 @@ where
},
}
}
/// Generates hscan field pattern. Suppose the field is pa_1234 it will generate
/// pa_*
pub fn generate_hscan_pattern_for_attempt(sk: &str) -> String {
sk.split('_')
.take(1)
.chain(["*"])
.collect::<Vec<&str>>()
.join("_")
}