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