rapido-labs / silent-assassin

Preemptible Node Killer
Apache License 2.0
39 stars 4 forks source link

Replace all hardcoded time unit with time.Duration #28

Open max0ne opened 3 years ago

max0ne commented 3 years ago

This is a trivial change, it replaces all hardcoded millisecond and minute time unit in config to using dynamic unit using time.Duration, also updated all code base from using uint32 to using time.Duration to express duration.

This is to ensure code base doesn't need to do millisecond unit conversion.

This is a breaking change, existing config will need to be updated accordingly