have a clock by default

master
Jordan Orelli 5 years ago
parent e4846cb3c4
commit 9fd70eb7c1

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

Loading…
Cancel
Save