From 72acd6cfe8bbbf5c52bfc805a3889c6941499c95 Mon Sep 17 00:00:00 2001 From: Mikhail Lukianchenko <42915+akabos@users.noreply.github.com> Date: Thu, 6 Aug 2020 13:19:27 +0300 Subject: [PATCH] Fix typo in diode.NewWriter argument name (#254) --- diode/diode.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diode/diode.go b/diode/diode.go index 07224fa..45a8910 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,