code: func (b *BloomIndexer) Commit() error {
  	batch := b.db.NewBatch()
  	for i := 0; i < types.BloomBitLength; i++ {
  		bits, err := b.gen.Bitset(uint(i))
  		if err != nil {
  			return err
  		}
  		rawdb.WriteBloomBits(batch, uint(i), b.section, b.head, bitutil.CompressBytes(bits))
  	}
  	return batch.Write()
  }
docs: // Commit implements core.ChainIndexerBackend, finalizing the bloom section and
  // writing it out into the database.