Skip to content

Commit

Permalink
fix logstash-plugins#77 and many oithers with Failed to handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalik-dj committed Apr 19, 2024
1 parent 61e9330 commit fed5cee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/logstash/outputs/bson/big_decimal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module ClassMethods
# @param [ BSON ] bson object from Mongo.
# @return [ BigDecimal ] The decoded BigDecimal.
# @see http://bsonspec.org/#/specification
def from_bson(bson)
def from_bson(bson, **_options)
from_bson_double(bson.get_bytes(8))
end

Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/bson/logstash_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module ClassMethods
# @param [ ByteBuffer ] buffer The byte buffer.
# @return [ Event ] The decoded bson document.
# @see http://bsonspec.org/#/specification
def from_bson(buffer)
def from_bson(buffer, **_options)
hash = Hash.new
buffer.get_int32 # Throw away the size.
while (type = buffer.get_byte) != NULL_BYTE
Expand Down
2 changes: 1 addition & 1 deletion lib/logstash/outputs/bson/logstash_timestamp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module ClassMethods
# @param [ BSON ] bson encoded time.
# @return [ ::LogStash::Timestamp ] The decoded UTC time as a ::LogStash::Timestamp.
# @see http://bsonspec.org/#/specification
def from_bson(bson)
def from_bson(bson, **_options)
seconds, fragment = BSON::Int64.from_bson(bson).divmod(1000)
new(::Time.at(seconds, fragment * 1000).utc)
end
Expand Down

0 comments on commit fed5cee

Please sign in to comment.