Skip to content

Commit

Permalink
Merge pull request #2110 from josephschorr/move-consistency-middleware
Browse files Browse the repository at this point in the history
Move consistency middleware into pkg so embedded uses can override
  • Loading branch information
josephschorr authored Oct 30, 2024
2 parents 1423ebb + e70532d commit 51a423d
Show file tree
Hide file tree
Showing 9 changed files with 269 additions and 285 deletions.
277 changes: 0 additions & 277 deletions internal/middleware/consistency/consistency.go

This file was deleted.

2 changes: 1 addition & 1 deletion internal/services/integrationtesting/cert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ import (

"github.com/authzed/spicedb/internal/datastore/memdb"
"github.com/authzed/spicedb/internal/dispatch/graph"
"github.com/authzed/spicedb/internal/middleware/consistency"
datastoremw "github.com/authzed/spicedb/internal/middleware/datastore"
"github.com/authzed/spicedb/internal/middleware/servicespecific"
tf "github.com/authzed/spicedb/internal/testfixtures"
"github.com/authzed/spicedb/pkg/cmd/server"
"github.com/authzed/spicedb/pkg/cmd/util"
"github.com/authzed/spicedb/pkg/middleware/consistency"
"github.com/authzed/spicedb/pkg/tuple"
"github.com/authzed/spicedb/pkg/zedtoken"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/services/v1/experimental.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/authzed/spicedb/internal/dispatch"
log "github.com/authzed/spicedb/internal/logging"
"github.com/authzed/spicedb/internal/middleware"
"github.com/authzed/spicedb/internal/middleware/consistency"
datastoremw "github.com/authzed/spicedb/internal/middleware/datastore"
"github.com/authzed/spicedb/internal/middleware/handwrittenvalidation"
"github.com/authzed/spicedb/internal/middleware/streamtimeout"
Expand All @@ -30,6 +29,7 @@ import (
"github.com/authzed/spicedb/pkg/cursor"
"github.com/authzed/spicedb/pkg/datastore"
dsoptions "github.com/authzed/spicedb/pkg/datastore/options"
"github.com/authzed/spicedb/pkg/middleware/consistency"
core "github.com/authzed/spicedb/pkg/proto/core/v1"
dispatchv1 "github.com/authzed/spicedb/pkg/proto/dispatch/v1"
implv1 "github.com/authzed/spicedb/pkg/proto/impl/v1"
Expand Down
2 changes: 1 addition & 1 deletion internal/testserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import (

"github.com/authzed/spicedb/internal/datastore/memdb"
"github.com/authzed/spicedb/internal/dispatch/graph"
"github.com/authzed/spicedb/internal/middleware/consistency"
datastoremw "github.com/authzed/spicedb/internal/middleware/datastore"
"github.com/authzed/spicedb/pkg/cmd/server"
"github.com/authzed/spicedb/pkg/cmd/util"
"github.com/authzed/spicedb/pkg/datastore"
"github.com/authzed/spicedb/pkg/middleware/consistency"
"github.com/authzed/spicedb/pkg/middleware/logging"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/cmd/server/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ import (

"github.com/authzed/spicedb/internal/dispatch"
"github.com/authzed/spicedb/internal/logging"
consistencymw "github.com/authzed/spicedb/internal/middleware/consistency"
datastoremw "github.com/authzed/spicedb/internal/middleware/datastore"
dispatchmw "github.com/authzed/spicedb/internal/middleware/dispatcher"
"github.com/authzed/spicedb/internal/middleware/servicespecific"
"github.com/authzed/spicedb/pkg/datastore"
consistencymw "github.com/authzed/spicedb/pkg/middleware/consistency"
logmw "github.com/authzed/spicedb/pkg/middleware/logging"
"github.com/authzed/spicedb/pkg/middleware/requestid"
"github.com/authzed/spicedb/pkg/middleware/serverversion"
Expand Down
2 changes: 1 addition & 1 deletion pkg/development/devcontext.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ import (
maingraph "github.com/authzed/spicedb/internal/graph"
"github.com/authzed/spicedb/internal/grpchelpers"
log "github.com/authzed/spicedb/internal/logging"
"github.com/authzed/spicedb/internal/middleware/consistency"
datastoremw "github.com/authzed/spicedb/internal/middleware/datastore"
"github.com/authzed/spicedb/internal/namespace"
"github.com/authzed/spicedb/internal/relationships"
v1svc "github.com/authzed/spicedb/internal/services/v1"
"github.com/authzed/spicedb/internal/sharederrors"
"github.com/authzed/spicedb/pkg/datastore"
"github.com/authzed/spicedb/pkg/middleware/consistency"
core "github.com/authzed/spicedb/pkg/proto/core/v1"
devinterface "github.com/authzed/spicedb/pkg/proto/developer/v1"
"github.com/authzed/spicedb/pkg/schemadsl/compiler"
Expand Down
Loading

0 comments on commit 51a423d

Please sign in to comment.