limitations under the License.
*/
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+ */
+
package sdlgoredis
import (
if err != nil {
return false, err
}
- if result.(int64) == int64(1) {
+ if result.(int) == int(1) {
return true, nil
}
return false, nil
}
}
-func (db *DB) SubscribeChannelDB(cb ChannelNotificationCb, channelPrefix, eventSeparator string, channels ...string) {
+func (db *DB) SubscribeChannelDB(cb func(string, ...string), channelPrefix, eventSeparator string, channels ...string) {
if len(db.cbMap) == 0 {
for _, v := range channels {
db.cbMap[v] = cb