From 55a10c419f31c47ec7dd1b7eac4a16e2af440ea8 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 23 Jan 2024 06:40:32 -0800 Subject: [PATCH] initial commits --- writenopcloser.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 writenopcloser.go diff --git a/writenopcloser.go b/writenopcloser.go new file mode 100644 index 0000000..b19d4f1 --- /dev/null +++ b/writenopcloser.go @@ -0,0 +1,17 @@ +package raft + +import ( + "io" +) + +type internalWriteNopCloser struct { + writer io.Writer +} + +func (receiver internalWriteNopCloser) Write(p []byte) (n int, err error) { + return receiver.writer.Write(p) +} + +func (internalWriteNopCloser) Close() error { + return nil +}