867f92c431
- Continuously parse storage diffs CSV data to read Pit contract state - Convert ilks in database to raw bytes32 value for use in generating storage keys dynamically - Persist storage diffs with block number and hash for validation
16 lines
260 B
Go
16 lines
260 B
Go
package fs
|
|
|
|
import "github.com/hpcloud/tail"
|
|
|
|
type Tailer interface {
|
|
Tail() (*tail.Tail, error)
|
|
}
|
|
|
|
type FileTailer struct {
|
|
Path string
|
|
}
|
|
|
|
func (tailer FileTailer) Tail() (*tail.Tail, error) {
|
|
return tail.TailFile(tailer.Path, tail.Config{Follow: true})
|
|
}
|