Skip to content

Commit

Permalink
Amend 3cc0cea
Browse files Browse the repository at this point in the history
Somehow I lost a part of this commit.

Signed-off-by: Sebastian Wicki <[email protected]>
Signed-off-by: Michi Mutsuzaki <[email protected]>
  • Loading branch information
gandro authored and michi-covalent committed Apr 15, 2020
1 parent 1c25780 commit 44fe5df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/server/local_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ func (s *LocalObserverServer) GetFlows(
}

func getFlows(
ctx context.Context,
req *observer.GetFlowsRequest,
server observer.Observer_GetFlowsServer,
obs GRPCServer,
Expand Down Expand Up @@ -273,7 +274,7 @@ func getFlows(
}

for ; ; i++ {
flow, err := flowsReader.Next(server.Context())
flow, err := flowsReader.Next(ctx)
if err != nil {
if err == io.EOF {
return nil
Expand Down

0 comments on commit 44fe5df

Please sign in to comment.