Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:21
rabbitmq-stomp
0001-clean-up-workarounds-for-Erlang-OTP-18.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-clean-up-workarounds-for-Erlang-OTP-18.patch of Package rabbitmq-stomp
From 1727e6f6d1d59eef05dbd77f73d728d70b61d0c5 Mon Sep 17 00:00:00 2001 From: Led <ledest@gmail.com> Date: Fri, 18 Aug 2017 15:44:19 +0300 Subject: [PATCH] clean up workarounds for Erlang/OTP < 18 --- src/rabbit_stomp_util.erl | 6 +----- test/src/rabbit_stomp_publish_test.erl | 23 +++++++++-------------- 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/src/rabbit_stomp_util.erl b/src/rabbit_stomp_util.erl index 2d794f7..5a1de7c 100644 --- a/src/rabbit_stomp_util.erl +++ b/src/rabbit_stomp_util.erl @@ -373,11 +373,8 @@ subscription_queue_name(Destination, SubscriptionId, Frame) -> %% Destination and SubscriptionId, and b) meets the constraints on %% AMQP queue names. It doesn't need to be secure; we use md5 here %% simply as a convenient means to bound the length. - rabbit_guid:string( - erlang:md5( - term_to_binary_compat:term_to_binary_1( - {Destination, SubscriptionId})), - "stomp-subscription"); + rabbit_guid:string(erlang:md5(term_to_binary({Destination, SubscriptionId}, [{minor_version, 1}])), + "stomp-subscription"); Name -> Name end. -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor