From be875c0100c999101dbd998ae63b9c0fb29bc7c1 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Sun, 8 Mar 2020 14:11:31 -0500 Subject: [PATCH] db comments to resolve postgraphile type conflicts --- db/migrations/00026_create_postgraphile_comments.sql | 8 ++++++++ pkg/super_node/backfiller.go | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrations/00026_create_postgraphile_comments.sql diff --git a/db/migrations/00026_create_postgraphile_comments.sql b/db/migrations/00026_create_postgraphile_comments.sql new file mode 100644 index 00000000..567ba6b5 --- /dev/null +++ b/db/migrations/00026_create_postgraphile_comments.sql @@ -0,0 +1,8 @@ +-- +goose Up +COMMENT ON TABLE public.nodes IS E'@name NodeIDs'; +COMMENT ON TABLE btc.header_cids IS E'@name BtcHeaderCids'; +COMMENT ON TABLE btc.transaction_cids IS E'@name BtcTransactionCids'; +COMMENT ON TABLE btc.queue_data IS E'@name BtcQueueData'; +COMMENT ON TABLE eth.transaction_cids IS E'@name EthTransactionCids'; +COMMENT ON TABLE eth.header_cids IS E'@name EthHeaderCids'; +COMMENT ON TABLE eth.queue_data IS E'@name EthQueueData'; \ No newline at end of file diff --git a/pkg/super_node/backfiller.go b/pkg/super_node/backfiller.go index 851f601c..de8a78d1 100644 --- a/pkg/super_node/backfiller.go +++ b/pkg/super_node/backfiller.go @@ -128,7 +128,7 @@ func (bfs *BackFillService) FillGapsInSuperNode(wg *sync.WaitGroup) { } gaps, err := bfs.Retriever.RetrieveGapsInData() if err != nil { - log.Error("super node db backfill RetrieveGapsInData error for chain %s: %v", bfs.chain.String(), err) + log.Errorf("super node db backfill RetrieveGapsInData error for chain %s: %v", bfs.chain.String(), err) continue } for _, gap := range gaps {