Closed fatboypunk closed 5 years ago
Hi, thank you for the PR, I'll need to take a bit to read it over and see if this is mergeable with our restrictions.
One big thing is that we need to continue to support older Elixir versions (1.4 onward is what we advertise), do you know if these deprecation changes are now using new APIs that didn't exist in older versions?
In addition, my quick skim looks like the seconds
-> second
change will be a breaking change to our external API. What's the motivation for changing the Duration type?
Then most of the other changes appear to be related to (finally) having mix format
run against the codebase.
You're right, I changed too much. This PR now only changes the parts that gave the warning.
One big thing is that we need to continue to support older Elixir versions (1.4 onward is what we advertise), do you know if these deprecation changes are now using new APIs that didn't exist in older versions?
I've checked and what this PR changes to already existed in 1.4, also the tests seem to work for 1.4
@fatboypunk thank you!
This seems worthy of a release. It would be nice to not have logs outputting the following warning during tests (or any other local dev).
warning: deprecated time unit: :microseconds. A time unit should be :second, :millisecond, :microsecond, :nanosecond, or a positive integer
@wcpines I just pushed a new point release of the agent - v0.4.10 with these changes. Give it a try?
Works, thank you!
Ran the tests with 1.8.0-rc.1 and got some deprecation warnings, this should fix them.