Skip to content

Commit

Permalink
feat(indexerhandler): Remove commented code for 'create_post_by_bot' …
Browse files Browse the repository at this point in the history
…(feat/social-feed-update-ai)
  • Loading branch information
omniwired committed Aug 7, 2023
1 parent a5d46b1 commit 7e2ddb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/friendsofgo/errors v0.9.2
github.com/go-co-op/gocron v1.18.0
github.com/google/uuid v1.3.0
github.com/gorilla/websocket v1.5.0
github.com/improbable-eng/grpc-web v0.14.1
github.com/jackc/pgx/v5 v5.3.0
Expand Down Expand Up @@ -132,7 +133,6 @@ require (
github.com/gogo/gateway v1.1.0 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/orderedcode v0.0.1 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/gorilla/handlers v1.5.1 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
Expand Down
6 changes: 3 additions & 3 deletions go/cmd/teritori-dapp-backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ func main() {
})

feedSvc := feed.NewFeedService(context.Background(), &feed.Config{
Logger: logger,
IndexerDB: indexerDB,
PinataJWT: *pinataJWT,
Logger: logger,
IndexerDB: indexerDB,
PinataJWT: *pinataJWT,
})

daoSvc := dao.NewDAOService(context.Background(), &dao.Config{
Expand Down
6 changes: 0 additions & 6 deletions go/internal/indexerhandler/handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,6 @@ func (h *Handler) handleExecute(e *Message) error {
if err := h.handleExecuteCreatePost(e, &executeMsg); err != nil {
return errors.Wrap(err, "failed to handle create post")
}
// case "create_post_by_bot":
// if executeMsg.Contract == h.config.Network.SocialFeedContractAddress {
// if err := h.handleExecuteCreatePostByBot(e, &executeMsg); err != nil {
// return errors.Wrap(err, "failed to handle create post by bot")
// }
// }
case "tip_post":
if executeMsg.Contract == h.config.Network.SocialFeedContractAddress {
if err := h.handleExecuteTipPost(e, &executeMsg); err != nil {
Expand Down

0 comments on commit 7e2ddb6

Please sign in to comment.