refactor: remove duplicate code and fmt

This commit is contained in:
xuu
2023-07-22 08:52:15 -06:00
parent 0f665d3484
commit 70c6996f39
16 changed files with 229 additions and 306 deletions

View File

@@ -14,8 +14,8 @@ import (
"go.sour.is/ev/pkg/driver/projecter"
resolvelinks "go.sour.is/ev/pkg/driver/resolve-links"
"go.sour.is/ev/pkg/driver/streamer"
"go.sour.is/ev/pkg/es"
"go.sour.is/ev/pkg/event"
gql_ev "go.sour.is/ev/pkg/gql"
)
var _ = apps.Register(10, func(ctx context.Context, svc *service.Harness) error {
@@ -48,7 +48,7 @@ var _ = apps.Register(10, func(ctx context.Context, svc *service.Harness) error
span.RecordError(err)
return err
}
svc.Add(eventstore, &es.EventStore{EventStore: eventstore})
svc.Add(eventstore, &gql_ev.EventStore{EventStore: eventstore})
return nil
})

View File

@@ -1,4 +1,5 @@
//go:build ignore
package main
import (