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",
|
||||
fx.Provide(
|
||||
NewMetadataService,
|
||||
fx.As(new(MetadataService)),
|
||||
fx.Annotate(
|
||||
NewMetadataService,
|
||||
fx.As(new(MetadataService)),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
@ -36,8 +36,10 @@ type StorageProtocol interface {
|
|||
|
||||
var Module = fx.Module("storage",
|
||||
fx.Provide(
|
||||
NewStorageService,
|
||||
fx.As(new(StorageService)),
|
||||
fx.Annotate(
|
||||
NewStorageService,
|
||||
fx.As(new(StorageService)),
|
||||
),
|
||||
),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue