Skip to content

Commit

Permalink
revert encoding.pyx changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mabdinur committed Jan 21, 2025
1 parent 4319a8a commit 756e9bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ddtrace/internal/_encoding.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ cdef inline const char * string_to_buff(str s):

# This is a borrowed reference but should be fine as we don't expect ORIGIN_KEY
# to get GC'd.
cdef const char * ORIGIN_KEY = string_to_buff(ORIGIN_KEY)
cdef size_t ORIGIN_KEY_LEN = <size_t> len(ORIGIN_KEY)
cdef const char * _ORIGIN_KEY = string_to_buff(ORIGIN_KEY)
cdef size_t _ORIGIN_KEY_LEN = <size_t> len(ORIGIN_KEY)


cdef inline int array_prefix_size(stdint.uint32_t l):
Expand Down Expand Up @@ -637,7 +637,7 @@ cdef class MsgpackEncoderV04(MsgpackEncoderBase):
if ret != 0:
break
if dd_origin is not NULL:
ret = pack_bytes(&self.pk, ORIGIN_KEY, ORIGIN_KEY_LEN)
ret = pack_bytes(&self.pk, _ORIGIN_KEY, _ORIGIN_KEY_LEN)
if ret == 0:
ret = pack_bytes(&self.pk, dd_origin, strlen(dd_origin))
if ret != 0:
Expand Down

0 comments on commit 756e9bb

Please sign in to comment.