have a clock by default

master
Jordan Orelli 5 years ago
parent e4846cb3c4
commit 9fd70eb7c1

@ -16,6 +16,7 @@ type Log struct {
func NewLog(name string, options ...Option) *Log { func NewLog(name string, options ...Option) *Log {
l := &Log{ l := &Log{
path: NewPath(name), path: NewPath(name),
clock: SystemClock{},
} }
for _, opt := range options { for _, opt := range options {
opt.apply(l) opt.apply(l)

Loading…
Cancel
Save