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 {
l := &Log{
path: NewPath(name),
clock: SystemClock{},
}
for _, opt := range options {
opt.apply(l)

Loading…
Cancel
Save