Hosung Kang
unread,May 31, 2010, 2:21:51 AM5/31/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to FlockDB
FlockDB version : twitter-flockdb-3d0db2d
OS : Cent OS 5.3 (32bit)
I got error message. but I have no solution. plz help me.
flockdb-0.3.2 and flockdb-0.4.0 have same problem.
# irb
irb(main):001:0> require "flockdb"
=> true
irb(main):002:0> flock = Flock.new "localhost:7915", :graphs =>
{ :follows => 1, :blocks => 2 }
=> #<Flock::Client:0xb7b1d584
@service=<Flock::Service(Flock::Edges::Client)
@current_server=localhost:7915>, @graphs={:follows=>1, :blocks=>2}>
irb(main):003:0> flock.select(nil, :follows, 1).to_a
=> []
irb(main):004:0> flock.add(20, :follows, 1)
TypeError: wrong argument type Symbol (expected Proc)
from /home/mygemrepository/gems/flockdb-0.3.2/lib/flock/
operations/execute_operations.rb:28:in `to_thrift'
from /home/mygemrepository/gems/flockdb-0.3.2/lib/flock/
operations/execute_operations.rb:23:in `apply'
from /home/mygemrepository/gems/flockdb-0.3.2/lib/flock/
client.rb:72:in `update'
from /home/mygemrepository/gems/flockdb-0.3.2/lib/flock/
client.rb:76:in `add'
from (irb):4