Skip to content

Commit

Permalink
Fix nil reference
Browse files Browse the repository at this point in the history
  • Loading branch information
xackery committed Nov 29, 2023
1 parent 2282bc8 commit 8e18e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions peqeditorsql/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@ type tailReq struct {
}

func newTailWatch(rootCtx context.Context, req *tailReq, msgChan chan string) (*tailWatch, error) {

e := &tailWatch{
rootCtx: rootCtx,
req: req,
}
e.ctx, e.cancel = context.WithCancel(context.Background())

err := e.restart(msgChan)
if err != nil {
return nil, fmt.Errorf("restart: %w", err)
Expand Down

0 comments on commit 8e18e71

Please sign in to comment.