Skip to content

Commit

Permalink
update link tso example
Browse files Browse the repository at this point in the history
  • Loading branch information
bilal-fazlani committed Feb 27, 2024
1 parent 5e695c3 commit d463094
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions examples/echo/src/main/scala/com/example/TsoDocs.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,5 @@ import com.bilalfazlani.zioMaelstrom.*
import zio.*

object TsoExample {
val program: ZIO[MaelstromRuntime, AskError, Unit] = for
msgId1 <- Random.nextIntBounded(Int.MaxValue).map(MessageId(_))
timestamp: Int <- LinTso.ts(5.seconds)
_ <- logInfo(s"timestamp is $timestamp")
yield ()
val timestamp: ZIO[LinTso, AskError, Int] = LinTso.ts(5.seconds)
}

0 comments on commit d463094

Please sign in to comment.