1
0
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:
Holger Just 2017-04-27 23:47:51 +02:00
parent a6c6fcc90b
commit 3ccacfaab9
2 changed files with 4 additions and 4 deletions

View File

@ -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'

View File

@ -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#==`.
#