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