Ariel Richtman on Nostr: npub129gva…e4kwg ✋ I made some amazing progress (for me) on my API thanks to you. ...
Published at
2024-02-17 13:53:51Event JSON
{
"id": "9e5c5c6c2b4a8d834cfc8ff8d4eaf0f302cf63916bc1235523eedd7b1e88821c",
"pubkey": "44ec8f9174ff3abe7bf0b21b37af11b7b036564d2d0d0ff3e48a3496e5adcf46",
"created_at": 1708178031,
"kind": 1,
"tags": [
[
"p",
"5150cec16f3fe453e8895cfc0a03f391c890712633f718c0bca1a1096cf8d547",
"wss://relay.mostr.pub"
],
[
"p",
"979383f8767c5d795fcad86f82dc7b38b384c1a473710c433014dc2c0fb0e359",
"wss://relay.mostr.pub"
],
[
"proxy",
"https://eigenmagic.net/users/arichtman/statuses/111947155474926091",
"activitypub"
]
],
"content": "nostr:npub129gvast08lj986yftn7q5qlnj8yfqufxx0m33s9u5xssjm8c64rsve4kwg ✋ I made some amazing progress (for me) on my API thanks to you. But I now have a question about Axum that I think is worthy of your attention. I have a single state, that I have dependency injected/gested with a client for a downstream API\n\nThis works fine, but to decouple the data access layer so we can do test mocking, I have to use a trait object\nDefining a trait for the client struct is actually fine I think, it's where I have to do thia pass-through definition because it's a property that is smelling to me. If you've time I'd always appreciate any feedback.\n\nhttps://github.com/arichtman/external-dns-opnsense/blob/e7c3fdd7c57597db3af1328a10fb36c511461ebe/src/appstate.rs#L49",
"sig": "83bc67e424c4c72e4b85148b79724ad49554ef64f9dd680a4c06f9edc246ff200dbe3d353d69b8480ecc683d90595db9a47b22363200f8620d856eb87d39fb2d"
}