Skip to content

Commit

Permalink
fix: use generateBucketedConfigForUserUTF8 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsalamad authored Mar 24, 2023
1 parent cfaef63 commit 1b3f991
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ def close
sig { params(user: UserData).returns(BucketedUserConfig) }
def generate_bucketed_config(user)
@wasm_mutex.synchronize do
user_addr = malloc_asc_string(user.to_json)
user_addr = malloc_asc_byte_array(user.to_json)
@@stack_tracer = @@stack_tracer_raise
config_addr = @@instance.invoke("generateBucketedConfigForUser", @sdkKeyAddr, user_addr)
bucketed_config_json = read_asc_string(config_addr)
config_addr = @@instance.invoke("generateBucketedConfigForUserUTF8", @sdkKeyAddr, user_addr)
bucketed_config_json = read_asc_byte_array(config_addr)
bucketed_config_hash = Oj.load(bucketed_config_json)

BucketedUserConfig.new(bucketed_config_hash['project'],
Expand Down
2 changes: 1 addition & 1 deletion lib/devcycle-ruby-server-sdk/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module DevCycle
VERSION = '2.2.0'
VERSION = '2.2.1'
end

0 comments on commit 1b3f991

Please sign in to comment.