Skip to content

v1.0.1: six fixes from new contributors

Latest

Choose a tag to compare

@mannietech15 mannietech15 released this 03 Dec 09:03
· 63 commits to main since this release

Six bug fixes, all from first-time contributors. Demo output is unchanged in every chapter.

Fixes

  • Ch 05, URL shortener: shorten() no longer loops forever once every random code of a length is taken; it raises LookupError (#11, fixes #8). Thanks @techkayacodes.
  • Ch 06, message queue: delete("") no longer removes a message nobody received (#12, fixes #7). Thanks @techkayacodes.
  • Ch 07, circuit breaker: a cancelled half-open trial call no longer leaves the breaker stuck half-open forever (#17, fixes #13). Thanks @cloudgpuapp.
  • Ch 09, distributed lock: renew() rejects a zero or negative ttl, like acquire() (#14, fixes #10). Thanks @ywxy12138.
  • Ch 14, event sourcing: Account.load gives the right state when the snapshot is newer than the requested version (#15, fixes #6). Thanks @jamesyshd19-cmyk.
  • Ch 24, distributed tracing: critical_path() no longer hangs on a span that takes 0 ms (#16, fixes #9). Thanks @cloudgpuapp.

Every fix comes with a regression test: 272 tests now, up from 264.

Want to contribute?

There are open issues labelled good first issue, each with a hint and the checks to run.