nil 체크 추가
This commit is contained in:
@ -33,7 +33,10 @@ type MetricPipe struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (mp MetricPipe) Close() {
|
func (mp MetricPipe) Close() {
|
||||||
|
if mp.pipe != nil {
|
||||||
mp.pipe.Close()
|
mp.pipe.Close()
|
||||||
|
mp.pipe = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (mp MetricPipe) writeLine(line string) {
|
func (mp MetricPipe) writeLine(line string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user