lib/lusnoc/session.rb in lusnoc-1.0.0.44554 vs lib/lusnoc/session.rb in lusnoc-1.0.0.70325
- old
+ new
@@ -61,10 +61,10 @@
private
def create_session(name, ttl)
resp = Lusnoc.http_put(build_url('/v1/session/create'),
{ Name: name, TTL: "#{ttl}s", LockDelay: '5s' },
- { timeout: 1 })
+ **{ timeout: 1 })
session_id = JSON.parse(resp.body)['ID']
@expired_at = Time.now + ttl
logger.info "Session[#{name}:#{session_id}] created. TTL:#{ttl}s. Next expiration: #{@expired_at}"
@alive = true
session_id