From a54d1ec674fa356900c76d508ac13a6e474f1e2d Mon Sep 17 00:00:00 2001 From: shaoyue Date: Tue, 14 Dec 2021 20:05:09 +0800 Subject: [PATCH] [skip ci]add comment for EventWriter (#13369) Signed-off-by: shaoyue.chen --- internal/storage/event_writer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/storage/event_writer.go b/internal/storage/event_writer.go index 69835efe09..be0ba6bea3 100644 --- a/internal/storage/event_writer.go +++ b/internal/storage/event_writer.go @@ -109,6 +109,7 @@ func ReadDescriptorEvent(buffer io.Reader) (*descriptorEvent, error) { }, nil } +// EventWriter abstracts event writer type EventWriter interface { PayloadWriterInterface // Finish set meta in header and no data can be added to event writer