Read implements Wal.Read.
()
| 74 | |
| 75 | // Read implements Wal.Read. |
| 76 | func (p *MemWal) Read() (l *kt.Log, err error) { |
| 77 | if atomic.LoadUint32(&p.closed) == 1 { |
| 78 | err = ErrWalClosed |
| 79 | return |
| 80 | } |
| 81 | |
| 82 | err = io.EOF |
| 83 | return |
| 84 | } |
| 85 | |
| 86 | // Get implements Wal.Get. |
| 87 | func (p *MemWal) Get(index uint64) (l *kt.Log, err error) { |
no outgoing calls