Skip to content

Commit

Permalink
fix: effects import
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Oct 28, 2024
1 parent d76b0a8 commit 10f31ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/service/contentclaims/ucanservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/storacha/go-ucanto/core/dag/blockstore"
"github.com/storacha/go-ucanto/core/delegation"
"github.com/storacha/go-ucanto/core/invocation"
"github.com/storacha/go-ucanto/core/receipt"
"github.com/storacha/go-ucanto/core/receipt/fx"
"github.com/storacha/go-ucanto/core/result/ok"
"github.com/storacha/go-ucanto/principal/ed25519/verifier"
"github.com/storacha/go-ucanto/server"
Expand All @@ -25,7 +25,7 @@ func NewUCANService(service types.Publisher) map[ucan.Ability]server.ServiceMeth
return map[ucan.Ability]server.ServiceMethod[ok.Unit]{
assert.EqualsAbility: server.Provide(
assert.Equals,
func(cap ucan.Capability[assert.EqualsCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, receipt.Effects, error) {
func(cap ucan.Capability[assert.EqualsCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, fx.Effects, error) {
err := service.Publish(context.TODO(), inv)
if err != nil {
log.Errorf("publishing equals claim: %w", err)
Expand All @@ -35,7 +35,7 @@ func NewUCANService(service types.Publisher) map[ucan.Ability]server.ServiceMeth
),
assert.IndexAbility: server.Provide(
assert.Index,
func(cap ucan.Capability[assert.IndexCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, receipt.Effects, error) {
func(cap ucan.Capability[assert.IndexCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, fx.Effects, error) {
err := service.Publish(context.TODO(), inv)
if err != nil {
log.Errorf("publishing index claim: %w", err)
Expand All @@ -45,7 +45,7 @@ func NewUCANService(service types.Publisher) map[ucan.Ability]server.ServiceMeth
),
claim.CacheAbility: server.Provide(
claim.Cache,
func(cap ucan.Capability[claim.CacheCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, receipt.Effects, error) {
func(cap ucan.Capability[claim.CacheCaveats], inv invocation.Invocation, ctx server.InvocationContext) (ok.Unit, fx.Effects, error) {
peerid, err := toPeerID(inv.Issuer())
if err != nil {
return ok.Unit{}, nil, err
Expand Down

0 comments on commit 10f31ac

Please sign in to comment.