mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
Updated default driver registration
This commit is contained in:
parent
25f3ef0646
commit
2be0d471ac
@ -35,6 +35,11 @@ func WithContext(ctx context.Context, drv Driver, opts ...Option) context.Contex
|
|||||||
opt(drv, value.opts)
|
opt(drv, value.opts)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// set first registered driver as a default one
|
||||||
|
if value.opts.defaultDriver == "" {
|
||||||
|
value.opts.defaultDriver = drv.Name()
|
||||||
|
}
|
||||||
|
|
||||||
return ctx
|
return ctx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user