Rust Refactoring and function closures

I was recently watching Jon Gjengset’s Video on solving fly.io distributed system challanges and I always liked doing these kind of things, and it was a good excuse for me test my rust skills. I started doing these exercises in rust here. I was able to solve echo and unique-id generator challanges, but the decisions I took while doing them was becoming difficult to work with for the next challange. so below is me working on refactoring some code to support multiple handlers, I am not sure if it is a good decision, but here we go: Your browser does not support the audio element. ...

April 15, 2023 · 1 min · Upendra Upadhyay