Merge branch 'tcheneau-typo-fix'
This commit is contained in:
commit
9e6542941b
6
tail.go
6
tail.go
|
@ -167,10 +167,10 @@ var errStopAtEOF = errors.New("tail: stop at eof")
|
||||||
|
|
||||||
func (tail *Tail) close() {
|
func (tail *Tail) close() {
|
||||||
close(tail.Lines)
|
close(tail.Lines)
|
||||||
tail.colseFile()
|
tail.closeFile()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tail *Tail) colseFile() {
|
func (tail *Tail) closeFile() {
|
||||||
if tail.file != nil {
|
if tail.file != nil {
|
||||||
tail.file.Close()
|
tail.file.Close()
|
||||||
tail.file = nil
|
tail.file = nil
|
||||||
|
@ -178,7 +178,7 @@ func (tail *Tail) colseFile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (tail *Tail) reopen() error {
|
func (tail *Tail) reopen() error {
|
||||||
tail.colseFile()
|
tail.closeFile()
|
||||||
for {
|
for {
|
||||||
var err error
|
var err error
|
||||||
tail.file, err = OpenFile(tail.Filename)
|
tail.file, err = OpenFile(tail.Filename)
|
||||||
|
|
Loading…
Reference in New Issue