Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frameworks/Ruby/rack-sequel/hello_world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ def db
end

def queries(env)
ids = ALL_IDS.sample(bounded_queries(env))
DB.synchronize do
ALL_IDS.sample(bounded_queries(env)).map do |id|
ids.map do |id|
World::BY_ID.(id: id)
end
end
Expand Down Expand Up @@ -93,9 +94,10 @@ def fortunes
end

def updates(env)
ids = ALL_IDS.sample(bounded_queries(env))
DB.synchronize do
worlds =
ALL_IDS.sample(bounded_queries(env)).map do |id|
ids.map do |id|
world = World::BY_ID.(id: id)
world[:randomnumber] = rand1
world
Expand Down
Loading