mirror of
https://github.com/meineerde/rackstash.git
synced 2026-02-23 20:01:44 +00:00
Move DEFAULT_OBJ_ID_STR_WIDTH to Rackstash module
This commit is contained in:
parent
a6c6fcc90b
commit
3ccacfaab9
@ -47,6 +47,10 @@ module Rackstash
|
|||||||
FIELD_TAGS = 'tags'.freeze
|
FIELD_TAGS = 'tags'.freeze
|
||||||
FIELD_TIMESTAMP = '@timestamp'.freeze
|
FIELD_TIMESTAMP = '@timestamp'.freeze
|
||||||
FIELD_VERSION = '@version'.freeze
|
FIELD_VERSION = '@version'.freeze
|
||||||
|
|
||||||
|
# @!visibility private
|
||||||
|
# we want to look "native" with our inspect values, 7 for 32-bit, 14 for 64-bit
|
||||||
|
DEFAULT_OBJ_ID_STR_WIDTH = 0.size == 4 ? 7 : 14
|
||||||
end
|
end
|
||||||
|
|
||||||
require 'rackstash/logger'
|
require 'rackstash/logger'
|
||||||
|
|||||||
@ -12,10 +12,6 @@ require 'concurrent'
|
|||||||
module Rackstash
|
module Rackstash
|
||||||
module Fields
|
module Fields
|
||||||
class AbstractCollection
|
class AbstractCollection
|
||||||
# @!visibility private
|
|
||||||
# we want to look "native", 7 for 32-bit, 14 for 64-bit
|
|
||||||
DEFAULT_OBJ_ID_STR_WIDTH = 0.size == 4 ? 7 : 14
|
|
||||||
|
|
||||||
# Equality -- Two collections are equal if they are of exactly the same
|
# Equality -- Two collections are equal if they are of exactly the same
|
||||||
# class and contain the same raw data according to `Object#==`.
|
# class and contain the same raw data according to `Object#==`.
|
||||||
#
|
#
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user