Skip to content
Browse files

Remove CBson. Formatting.

  • Loading branch information...
1 parent 0ec1ed7 commit 2b142bf8e881ada9e50ed45337209f3f0e2d4b58 @bcg committed
Showing with 5 additions and 6 deletions.
  1. +5 −6 lib/em-mongo/server_response.rb
View
11 lib/em-mongo/server_response.rb
@@ -21,16 +21,15 @@ def initialize(buffer, connection)
@number_returned = buffer.get_int
# Documents
- pos=buffer.position
+ pos = buffer.position
@docs = (1..@number_returned).map do
size= @connection.peek_size(buffer)
-
- doc=CBson.deserialize(buffer.to_s[pos,size])
- pos+=size
- buffer.position=pos
+ doc = BSON::BSON_CODER.deserialize(buffer.to_s[pos,size])
+ pos += size
+ buffer.position = pos
doc
end
end
end
-end
+end

0 comments on commit 2b142bf

Please sign in to comment.
Something went wrong with that request. Please try again.