mirror of
https://github.com/meineerde/rackstash.git
synced 2025-12-24 00:21:11 +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_TIMESTAMP = '@timestamp'.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
|
||||
|
||||
require 'rackstash/logger'
|
||||
|
||||
@ -12,10 +12,6 @@ require 'concurrent'
|
||||
module Rackstash
|
||||
module Fields
|
||||
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
|
||||
# class and contain the same raw data according to `Object#==`.
|
||||
#
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user