fix: missing fx.Annotate
This commit is contained in:
parent
30b18a4ced
commit
12a5f3f631
|
@ -42,9 +42,11 @@ func (u UploadMetadata) IsEmpty() bool {
|
||||||
|
|
||||||
var Module = fx.Module("metadata",
|
var Module = fx.Module("metadata",
|
||||||
fx.Provide(
|
fx.Provide(
|
||||||
|
fx.Annotate(
|
||||||
NewMetadataService,
|
NewMetadataService,
|
||||||
fx.As(new(MetadataService)),
|
fx.As(new(MetadataService)),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
type MetadataService interface {
|
type MetadataService interface {
|
||||||
|
|
|
@ -36,9 +36,11 @@ type StorageProtocol interface {
|
||||||
|
|
||||||
var Module = fx.Module("storage",
|
var Module = fx.Module("storage",
|
||||||
fx.Provide(
|
fx.Provide(
|
||||||
|
fx.Annotate(
|
||||||
NewStorageService,
|
NewStorageService,
|
||||||
fx.As(new(StorageService)),
|
fx.As(new(StorageService)),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
type StorageService interface {
|
type StorageService interface {
|
||||||
|
|
Loading…
Reference in New Issue