test
This commit is contained in:
parent
0dd600a6cc
commit
9252b41458
@ -252,8 +252,8 @@ func JobWorker(id int, jobs <-chan Job) {
|
|||||||
func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
func TGCmdWorker(id int, b *tb.Bot, cmds <-chan TGCommand) {
|
||||||
//log.Printf("TGCmdWorker[" + strconv.Itoa(id) + "] : Starting.")
|
//log.Printf("TGCmdWorker[" + strconv.Itoa(id) + "] : Starting.")
|
||||||
for c := range cmds {
|
for c := range cmds {
|
||||||
j, err := json.Marshal(c)
|
//j, err := json.Marshal(c)
|
||||||
logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)")
|
//logOnError(err, "TGCmdWorker["+strconv.Itoa(id)+"] : Marshal(c)")
|
||||||
//log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j))
|
//log.Printf("TGCmdWorker["+strconv.Itoa(id)+"] : new command.\n%s\n", string(j))
|
||||||
opt := tb.SendOptions{}
|
opt := tb.SendOptions{}
|
||||||
switch c.ParseMode {
|
switch c.ParseMode {
|
||||||
|
Loading…
Reference in New Issue
Block a user