Skip to content

Commit 7506968

Browse files
committed
doc
1 parent da93bdc commit 7506968

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

statediff/indexer/indexer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// You should have received a copy of the GNU Affero General Public License
1515
// along with this program. If not, see <http://www.gnu.org/licenses/>.
1616

17+
// This package provides an interface for pushing and indexing IPLD objects into a Postgres database
18+
// Metrics for reporting processing and connection stats are defined in ./metrics.go
1719
package indexer
1820

1921
import (

statediff/indexer/writer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
package indexer
1818

1919
import (
20-
"github.com/ethereum/go-ethereum/common"
2120
"github.com/jmoiron/sqlx"
2221

22+
"github.com/ethereum/go-ethereum/common"
2323
"github.com/ethereum/go-ethereum/statediff/indexer/models"
2424
"github.com/ethereum/go-ethereum/statediff/indexer/postgres"
2525
"github.com/ethereum/go-ethereum/statediff/indexer/shared"
@@ -29,7 +29,7 @@ var (
2929
nullHash = common.HexToHash("0x0000000000000000000000000000000000000000000000000000000000000000")
3030
)
3131

32-
// Indexer satisfies the Indexer interface for ethereum
32+
// Handles processing and writing of indexed IPLD objects to Postgres
3333
type PostgresCIDWriter struct {
3434
db *postgres.DB
3535
}

0 commit comments

Comments
 (0)