Przeglądaj źródła

[chore] 생성자 추가

master
extra1563 4 lat temu
rodzic
commit
c6349cc21a
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4
    0
      src/broker/modules/init.go

+ 4
- 0
src/broker/modules/init.go Wyświetl plik

205
 	//모스카토 구조체 변수 초기화
205
 	//모스카토 구조체 변수 초기화
206
 	receiver := Receiver{moscato: moscato}
206
 	receiver := Receiver{moscato: moscato}
207
 	err := moscato.queue.queue_init()
207
 	err := moscato.queue.queue_init()
208
+	moscato.SendQueue = make(chan myType)
209
+	moscato.Subscriptionmanager.Initialize()
210
+
208
 	if err != nil {
211
 	if err != nil {
209
 		fmt.Println(err)
212
 		fmt.Println(err)
210
 		return
213
 		return
211
 	}
214
 	}
212
 
215
 
216
+
213
 	//go routine -> matching 동작
217
 	//go routine -> matching 동작
214
 	go moscato.Matching()
218
 	go moscato.Matching()
215
 	go moscato.CheckQueue()
219
 	go moscato.CheckQueue()

Ładowanie…
Anuluj
Zapisz