Permalink
Browse files

Update README.md

  • Loading branch information...
1 parent 611fc89 commit fd407c6b5ed547516f5db7cce2e3f3a8e038f9f6 @dmityr committed Jan 9, 2014
Showing with 10 additions and 10 deletions.
  1. +10 −10 README.md
View
@@ -34,11 +34,11 @@ Example of configuration for HeartBeat:
```ruby
{
- cluster_name: 'TestCluster',
- address: "tcp://127.0.0.1:4000",
- failure_threshold: 8,
- beat_interval: 1.2,
- seeds: {"tcp://127.0.0.1:4001"=>{}, "tcp://127.0.0.1:4002"=>{}}
+ :cluster_name => 'TestCluster',
+ :address => "tcp://127.0.0.1:4000",
+ :failure_threshold => 8,
+ :beat_interval => 1.2,
+ :seeds => {"tcp://127.0.0.1:4001" => {}, "tcp://127.0.0.1:4002" => {}}
}
```
@@ -48,11 +48,11 @@ Example of HeartBeat Usage:
```ruby
configuration_hash = {
- 'cluster_name': 'TestCluster',
- address: "tcp://127.0.0.1:4000",
- failure_threshold: 8,
- beat_interval: 1.2,
- seeds: {"tcp://127.0.0.1:4001"=>{}, "tcp://127.0.0.1:4002"=>{}}
+ :cluster_name => 'TestCluster',
+ :address => "tcp://127.0.0.1:4000",
+ :failure_threshold => 8,
+ :beat_interval => 1.2,
+ :seeds => {"tcp://127.0.0.1:4001"=>{}, "tcp://127.0.0.1:4002"=>{}}
}
heartbeat = HeartBeat.new configuration_hash

0 comments on commit fd407c6

Please sign in to comment.