mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-10-23 15:33:20 +08:00
Start implementing the chat widget for the dashboard
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
"github.com/facebookincubator/go-belt/tool/logger"
|
||||
@@ -318,7 +319,7 @@ func chatListen(cmd *cobra.Command, args []string) {
|
||||
assertNoError(ctx, err)
|
||||
|
||||
fmt.Println("subscribing...")
|
||||
ch, err := streamD.SubscribeToChatMessages(ctx)
|
||||
ch, err := streamD.SubscribeToChatMessages(ctx, time.Now().Add(-time.Minute))
|
||||
assertNoError(ctx, err)
|
||||
|
||||
fmt.Println("started listening...")
|
||||
|
Reference in New Issue
Block a user