Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Update for change in type of Env.root (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanTAllen authored Jan 16, 2022
1 parent 6fc4d36 commit f6d6aed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .release-notes/env-root.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Update to work with latest ponyc

The most recent ponyc implements [RFC #65](https://github.com/ponylang/rfcs/blob/main/text/0065-env-root-not-optional.md) which changes the type of `Env.root`.

We've updated accordingly. You won't be able to use this and future versions of the library without a corresponding update to your ponyc version.
6 changes: 3 additions & 3 deletions examples/async_tcp_property.pony
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ class _AsyncTCPSenderProperty is Property1[String]
fun gen(): Generator[String] =>
Generators.unicode()

fun ref property(sample: String, ph: PropertyHelper) ? =>
let sender = TCPSender(ph.env.root as AmbientAuth)
fun ref property(sample: String, ph: PropertyHelper) =>
let sender = TCPSender(ph.env.root)
ph.dispose_when_done(
TCPListener(
ph.env.root as AmbientAuth,
ph.env.root,
recover MyTCPListenNotify(sender, ph, "PONYCHECK") end,
"127.0.0.1",
"0"))
Expand Down

0 comments on commit f6d6aed

Please sign in to comment.