gnosis / dex-services

Off-chain services for the Gnosis Protocol v1.
33 stars 9 forks source link

Simplify trait bounds for AsyncSleeping, Now, SolutionTransactionSending #1547

Closed e00E closed 4 years ago

e00E commented 4 years ago

For AsyncSleeping and and Now we can safely assume that that this trait is always 'static which gets rid of some generic lifetimes. For SolutionTransactionSending we can assume that it is always Send and Sync but here I didn't want to add 'static because it would be reasonable to create an implementation based on &StablexContract instead of Arc for example.

Test Plan

Still compiles.