close
This commit is contained in:
parent
44a4819096
commit
6b8b6f6189
|
@ -1,7 +1,6 @@
|
||||||
package queue
|
package queue
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"loafle.com/overflow/agent_api/observer"
|
"loafle.com/overflow/agent_api/observer"
|
||||||
"loafle.com/overflow/agent_api/observer/messages"
|
"loafle.com/overflow/agent_api/observer/messages"
|
||||||
"log"
|
"log"
|
||||||
|
@ -15,7 +14,7 @@ func TestNewQueue(t *testing.T) {
|
||||||
|
|
||||||
lq := NewQueue(messages.QUEUE_DATA, 5, senderChanel)
|
lq := NewQueue(messages.QUEUE_DATA, 5, senderChanel)
|
||||||
|
|
||||||
fmt.Println(lq)
|
log.Println(lq)
|
||||||
|
|
||||||
observer.Notify(messages.QUEUE_DATA, "data")
|
observer.Notify(messages.QUEUE_DATA, "data")
|
||||||
observer.Notify(messages.QUEUE_DATA, "data1111")
|
observer.Notify(messages.QUEUE_DATA, "data1111")
|
||||||
|
@ -48,7 +47,7 @@ func GetItemTest(senderChanel chan interface{}) {
|
||||||
for sc := range senderChanel {
|
for sc := range senderChanel {
|
||||||
items := reflect.ValueOf(sc)
|
items := reflect.ValueOf(sc)
|
||||||
if items.Kind() != reflect.Slice {
|
if items.Kind() != reflect.Slice {
|
||||||
fmt.Println("ddddd")
|
log.Println("ddddd")
|
||||||
}
|
}
|
||||||
//log.Println(items.Len())
|
//log.Println(items.Len())
|
||||||
for i := 0; i < items.Len(); i++ {
|
for i := 0; i < items.Len(); i++ {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user