musicmatze :rust: :nixos: on Nostr: I started converting my project to use tower. I had problems understanding how to ...
I started converting my project to use tower. I had problems understanding how to build abstractions with it, but I am slowly getting it I think.
For now I think I have to abstract my network backend which uses libp2p into a service and a think that calls a service... Or should I use stream and sink for that? I am not sure yet 🤔
Published at
2024-11-01 19:30:49Event JSON
{
"id": "96d7d9a738898301c2b6296204286cf3364a1ccb603a43749557be18b42aae46",
"pubkey": "9774fa73d93e8079d02b61097a0aae23f9890f35ef99040aec95d0def2f24e27",
"created_at": 1730489449,
"kind": 1,
"tags": [
[
"proxy",
"https://social.linux.pizza/users/musicmatze/statuses/113409356586165282",
"activitypub"
]
],
"content": "I started converting my project to use tower. I had problems understanding how to build abstractions with it, but I am slowly getting it I think.\n\nFor now I think I have to abstract my network backend which uses libp2p into a service and a think that calls a service... Or should I use stream and sink for that? I am not sure yet 🤔",
"sig": "6ab5be50137c7b53299ad4a1fd6a200f84f2cd25be34770552cabfc478bd76a4e0cec26ac78a9c3630278091906e52f3797b756ef7f63d022a14dcccd2290c8f"
}