Add extra line about src files are part of RIC platform project
[ric-plt/sdlgo.git] / internal / sdlgoredis / sdlgoredis.go
index f1c7e62..574e7b0 100644 (file)
    limitations under the License.
 */
 
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+ */
+
 package sdlgoredis
 
 import (
@@ -92,7 +97,7 @@ func checkIntResultAndError(result interface{}, err error) (bool, error) {
        if err != nil {
                return false, err
        }
-       if result.(int64) == int64(1) {
+       if result.(int) == int(1) {
                return true, nil
        }
        return false, nil
@@ -183,7 +188,7 @@ func (db *DB) UnsubscribeChannelDB(channels ...string) {
        }
 }
 
-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