From ee7ee059efb573a1c3f850a1c2f7a43556e98ea8 Mon Sep 17 00:00:00 2001 From: Fabian Reinartz Date: Thu, 2 Aug 2018 17:57:34 -0400 Subject: [PATCH] Fix doc comments Signed-off-by: Fabian Reinartz --- wal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wal.go b/wal.go index 6685dbd063..26857a9dc0 100644 --- a/wal.go +++ b/wal.go @@ -84,7 +84,7 @@ func newWalMetrics(wal *SegmentWAL, r prometheus.Registerer) *walMetrics { // WAL is a write ahead log that can log new series labels and samples. // It must be completely read before new entries are logged. // -// DEPRECATED: use wal pkg combined with the record coders instead. +// DEPRECATED: use wal pkg combined with the record codex instead. type WAL interface { Reader() WALReader LogSeries([]RefSeries) error @@ -1254,7 +1254,7 @@ func MigrateWAL(logger log.Logger, dir string) (err error) { if err != nil { return errors.Wrap(err, "open new WAL") } - // We close it once already before as part of finalization. + // It should've already been closed as part of the previous finalization. // Do it once again in case of prior errors. defer func() { if err != nil {