Skip to content

Commit

Permalink
Added types.googleapi.com in block
Browse files Browse the repository at this point in the history
  • Loading branch information
jubeless committed Dec 11, 2023
1 parent 422cb82 commit d81cb0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion poller/poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"fmt"
"time"

"google.golang.org/protobuf/types/known/anypb"

"github.com/btcsuite/btcd/rpcclient"
"github.com/streamingfast/bstream"
pbbstream "github.com/streamingfast/bstream/pb/sf/bstream/v1"
Expand Down Expand Up @@ -237,10 +239,11 @@ func (p *Poller) Fetch(_ context.Context, blkNum uint64) (*pbbstream.Block, erro
blk.Tx = append(blk.Tx, trx)
}

anypb.New()

Check failure on line 242 in poller/poller.go

View workflow job for this annotation

GitHub Actions / Test (1.21.x, ubuntu-latest)

not enough arguments in call to anypb.New
return blk.MustToBstreamBlock(), nil
}

func getContentType() string {
blk := &pbbitcoin.Block{}
return string(blk.ProtoReflect().Descriptor().FullName())
return "type.googleapis.com/" + string(blk.ProtoReflect().Descriptor().FullName())
}

0 comments on commit d81cb0a

Please sign in to comment.