Skip to content

Commit 70b3612

Browse files
author
Qi Xiao
committed
Fix fetch log mux code bug
1 parent 46cc59e commit 70b3612

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

worker/dbms_mux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ func (s *DBKayakMuxService) Fetch(req *kt.FetchRequest, resp *kt.FetchResponse)
7777

7878
if v, ok := s.serviceMap.Load(id); ok {
7979
var l *kt.Log
80-
if l, err = v.(*kayak.Runtime).Fetch(req.GetContext(), req.Index); err != nil {
80+
if l, err = v.(*kayak.Runtime).Fetch(req.GetContext(), req.Index); err == nil {
8181
resp.Log = l
8282
resp.Instance = req.Instance
83-
return err
8483
}
84+
return
8585
}
8686

8787
return errors.Wrapf(ErrUnknownMuxRequest, "instance %v", req.Instance)

0 commit comments

Comments
 (0)