tail: Fix tyop.
Change-Id: I0f9b88fc327b169c748794e86efb0aa0a03b3e2a
This commit is contained in:
parent
0bc5f080e8
commit
d5f9e6c087
6
tail.go
6
tail.go
|
@ -158,10 +158,10 @@ func (tail *Tail) Stop() error {
|
|||
|
||||
func (tail *Tail) close() {
|
||||
close(tail.Lines)
|
||||
tail.colseFile()
|
||||
tail.closeFile()
|
||||
}
|
||||
|
||||
func (tail *Tail) colseFile() {
|
||||
func (tail *Tail) closeFile() {
|
||||
if tail.file != nil {
|
||||
tail.file.Close()
|
||||
tail.file = nil
|
||||
|
@ -169,7 +169,7 @@ func (tail *Tail) colseFile() {
|
|||
}
|
||||
|
||||
func (tail *Tail) reopen() error {
|
||||
tail.colseFile()
|
||||
tail.closeFile()
|
||||
for {
|
||||
var err error
|
||||
tail.file, err = OpenFile(tail.Filename)
|
||||
|
|
Loading…
Reference in New Issue