Skip to content

Commit

Permalink
packet post fixes (#389)
Browse files Browse the repository at this point in the history
Follow up to #378. Fixing two bugs that found their way in.
  • Loading branch information
mattnibs authored Mar 5, 2020
1 parent 022e2f1 commit 69f41da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zqd/packet/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func IngestFile(ctx context.Context, s *space.Space, pcap string) (*IngestProces
func (p *IngestProcess) run(ctx context.Context) error {
idx, err := p.slurp(ctx)
if err != nil {
return err
goto abort
}
if err = p.writeIndexFile(idx); err != nil {
goto abort
Expand Down Expand Up @@ -210,7 +210,7 @@ func (p *IngestProcess) writeData(ctx context.Context) error {
// leaking files and file descriptors.
bzngfile.Close()
os.Remove(bzngfile.Name())
return nil
return err
}
if err := bzngfile.Close(); err != nil {
return err
Expand Down

0 comments on commit 69f41da

Please sign in to comment.