Skip to content

Commit

Permalink
Fix directory path for segment reader. (#169)
Browse files Browse the repository at this point in the history
Directory need to be changed because we updated dependency in #143, in which there is breaking change on tsdb.LastCheckpoint() API.
  • Loading branch information
mans0954 authored and StevenYCChou committed Sep 27, 2019
1 parent cf645f3 commit bc6fced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tail/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func Tail(ctx context.Context, dir string) (*Tailer, error) {
}
// Open the entire checkpoint first. It has to be consumed before
// the tailer proceeds to any segments.
t.cur, err = wal.NewSegmentsReader(filepath.Join(dir, cpdir))
t.cur, err = wal.NewSegmentsReader(cpdir)
if err != nil {
return nil, errors.Wrap(err, "open checkpoint")
}
Expand Down

0 comments on commit bc6fced

Please sign in to comment.