chore: go fmt

This commit is contained in:
Jon Lundy 2022-11-20 10:26:20 -07:00
parent 92b813c9ed
commit 4b4d3b743d
Signed by untrusted user who does not match committer: xuu
GPG Key ID: C63E6D61F3035024
9 changed files with 12 additions and 14 deletions

View File

@ -10,6 +10,7 @@ import (
"strings"
"github.com/keys-pub/keys"
"github.com/sour-is/ev/internal/lg"
)

View File

@ -11,6 +11,7 @@ import (
"github.com/keys-pub/keys"
"github.com/oklog/ulid/v2"
"github.com/sour-is/ev/pkg/es/event"
"github.com/sour-is/ev/pkg/gql"
)

View File

@ -12,13 +12,13 @@ import (
"strings"
"time"
"github.com/keys-pub/keys"
"go.mills.io/saltyim"
"go.opentelemetry.io/otel/metric/instrument"
"go.opentelemetry.io/otel/metric/instrument/syncint64"
"go.opentelemetry.io/otel/metric/unit"
"go.uber.org/multierr"
"github.com/keys-pub/keys"
"github.com/sour-is/ev/internal/lg"
"github.com/sour-is/ev/pkg/es"
"github.com/sour-is/ev/pkg/es/event"

View File

@ -1,7 +1,6 @@
package main
import (
"log"
"net/http"
"github.com/rs/cors"
@ -18,7 +17,6 @@ func httpMux(fns ...interface{ RegisterHTTP(*http.ServeMux) }) http.Handler {
fn.RegisterHTTP(mux.ServeMux)
if fn, ok := fn.(interface{ RegisterAPIv1(*http.ServeMux) }); ok {
log.Printf("register api %T", fn)
fn.RegisterAPIv1(mux.api)
}
}
@ -36,6 +34,7 @@ func newMux() *mux {
}
type RegisterHTTP func(*http.ServeMux)
func (fn RegisterHTTP) RegisterHTTP(mux *http.ServeMux) {
fn(mux)
}

View File

@ -188,7 +188,6 @@ func (e *eventLog) Append(ctx context.Context, events event.Events, version uint
attribute.Int64("args.version", int64(version)),
attribute.String("streamID", e.streamID),
attribute.String("path", e.diskStore.path),
)
event.SetStreamID(e.streamID, events...)
@ -279,7 +278,6 @@ func (e *eventLog) Read(ctx context.Context, after, count int64) (event.Events,
attribute.Int64("start", int64(start)),
attribute.Int64("count", int64(count)),
attribute.Int64("after", int64(after)),
)
events = make([]event.Event, math.Abs(count))

View File

@ -118,7 +118,6 @@ func (w *wrapper) LastIndex(ctx context.Context) (uint64, error) {
return w.up.LastIndex(ctx)
}
func DefaultProjection(e event.Event) []event.Event {
m := e.EventMeta()
streamID := m.StreamID