initial commits

master
Charles Iliya Krempeaux 2024-01-23 06:40:32 -08:00
parent 56a1ff56b1
commit 55a10c419f
1 changed files with 17 additions and 0 deletions

17
writenopcloser.go 100644
View File

@ -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
}