@ostap0207 commented on this pull request.


>  }
 
 static int ki_statsd_decr_with_labels(sip_msg_t *msg, str *key, str *labels)
 {
-       return statsd_count(key->s, "-1", labels->s);
+       return convert_result(statsd_count(key->s, "-1", labels->s));
+}
+
+static int convert_result(bool result)
+{
+       if(result == false) {
+               return -1;
+       }
+
+       return 0;

Updated 
https://github.com/kamailio/kamailio/compare/3bbed6d62a2ef3a3fbcbf4d8ba125ab95aec28dd..ee772af9e7acbdac14247010e1e7ecf539d759ba

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3819#discussion_r1580680113
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/3819/review/2024443...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to