From 010ec0ef0b0f9c89d848ea9247e40c0d2389342a Mon Sep 17 00:00:00 2001 From: Mikhail Lukianchenko <42915+akabos@users.noreply.github.com> Date: Thu, 6 Aug 2020 07:28:19 +0300 Subject: [PATCH] Fix typo in diode.NewWriter argument name --- diode/diode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diode/diode.go b/diode/diode.go index 07224fa3..45a89109 100644 --- a/diode/diode.go +++ b/diode/diode.go @@ -48,7 +48,7 @@ type Writer struct { // used. // // See code.cloudfoundry.org/go-diodes for more info on diode. -func NewWriter(w io.Writer, size int, poolInterval time.Duration, f Alerter) Writer { +func NewWriter(w io.Writer, size int, pollInterval time.Duration, f Alerter) Writer { ctx, cancel := context.WithCancel(context.Background()) dw := Writer{ w: w, @@ -59,9 +59,9 @@ func NewWriter(w io.Writer, size int, poolInterval time.Duration, f Alerter) Wri f = func(int) {} } d := diodes.NewManyToOne(size, diodes.AlertFunc(f)) - if poolInterval > 0 { + if pollInterval > 0 { dw.d = diodes.NewPoller(d, - diodes.WithPollingInterval(poolInterval), + diodes.WithPollingInterval(pollInterval), diodes.WithPollingContext(ctx)) } else { dw.d = diodes.NewWaiter(d,