Fix typo (colseFile -> closeFile)

This commit is contained in:
Tony Cheneau 2016-04-04 16:51:26 +02:00
parent 1a0242e795
commit 2f69c9fa4e
1 changed files with 3 additions and 3 deletions

View File

@ -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)