graphprotocol / indexer-rs

Rewrite of indexer-service in Rust with TAP payments implementation
Apache License 2.0
22 stars 20 forks source link

Remove clones from config and use 'static Config in Service #414

Closed gusinacio closed 3 weeks ago

gusinacio commented 1 month ago
          Hey, I think you can `Box::leak` the configuration, that way you don't need to clone things.

_Originally posted by @gusinacio in https://github.com/graphprotocol/indexer-rs/pull/409#discussion_r1817154855_