Skip to content

Commit

Permalink
Merge pull request #2 from konung/crystal-future
Browse files Browse the repository at this point in the history
Fixing breaking change to Concurrent::Future in Crystal 0.35
  • Loading branch information
jwoertink authored Sep 8, 2020
2 parents e0435e6 + a932968 commit e1b03a3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Version 0.3

_NOTE_ This requires version Crystal > 0.35

1. Crystal team has moved Concurrent::Future to community-future shard, and removed functionality from standard library in Crystal version 0.35
2. Discussion is here: https://github.com/crystal-lang/crystal/pull/9093
3. This updates lucky-cluster to be compatible with the change
6 changes: 5 additions & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: lucky-cluster
version: 0.2.0
version: 0.3.0

authors:
- Jeremy Woertink <[email protected]>

crystal: 0.29.0

license: MIT

dependencies:
future:
github: crystal-community/future.cr
8 changes: 5 additions & 3 deletions src/lucky-cluster.cr
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
require "future"

module Lucky

class Cluster < ::AppServer
VERSION = "0.2.0"
private getter processes : Array(Concurrent::Future(Nil))
VERSION = "0.3.0"
private getter processes : Array(Future::Compute(Nil))
private getter reuse_port : Bool
property threads : Int32 = 1

def initialize
@processes = [] of Concurrent::Future(Nil)
@processes = [] of Future::Compute(Nil)
@reuse_port = true
super
end
Expand Down

0 comments on commit e1b03a3

Please sign in to comment.