Code Review
/
ric-plt
/
sdlgo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add extra line about src files are part of RIC platform project
[ric-plt/sdlgo.git]
/
internal
/
sdlgoredis
/
sdlgoredis.go
diff --git
a/internal/sdlgoredis/sdlgoredis.go
b/internal/sdlgoredis/sdlgoredis.go
index
f1c7e62
..
574e7b0
100644
(file)
--- a/
internal/sdlgoredis/sdlgoredis.go
+++ b/
internal/sdlgoredis/sdlgoredis.go
@@
-15,6
+15,11
@@
limitations under the License.
*/
limitations under the License.
*/
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+ */
+
package sdlgoredis
import (
package sdlgoredis
import (
@@
-92,7
+97,7
@@
func checkIntResultAndError(result interface{}, err error) (bool, error) {
if err != nil {
return false, err
}
if err != nil {
return false, err
}
- if result.(int
64) == int64
(1) {
+ if result.(int
) == int
(1) {
return true, nil
}
return false, nil
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
if len(db.cbMap) == 0 {
for _, v := range channels {
db.cbMap[v] = cb