initial commits
parent
56a1ff56b1
commit
55a10c419f
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue