Commit 9f73402c authored by Will Cory's avatar Will Cory Committed by GitHub

Merge pull request #8540 from JohnwickBC/develop

chore: fix typos
parents 1d57357f 4e2dd772
...@@ -330,7 +330,7 @@ func ReorgFlipFlop(gt *testing.T, deltaTimeOffset *hexutil.Uint64) { ...@@ -330,7 +330,7 @@ func ReorgFlipFlop(gt *testing.T, deltaTimeOffset *hexutil.Uint64) {
// 12. Sync the verifier and assert that the L2 safe head L1 origin has caught up with chain B // 12. Sync the verifier and assert that the L2 safe head L1 origin has caught up with chain B
// 13. Ensure that the parent L2 block of the block that contains Alice's transaction still exists // 13. Ensure that the parent L2 block of the block that contains Alice's transaction still exists
// after the L2 has re-derived from chain B. // after the L2 has re-derived from chain B.
// 14. Ensure that the L2 block that contained Alice's transction before the reorg no longer exists. // 14. Ensure that the L2 block that contained Alice's transaction before the reorg no longer exists.
// //
// Chain A // Chain A
// - 61 blocks total // - 61 blocks total
......
...@@ -235,7 +235,7 @@ func NewMetrics(procName string) *Metrics { ...@@ -235,7 +235,7 @@ func NewMetrics(procName string) *Metrics {
PeerScores: factory.NewHistogramVec(prometheus.HistogramOpts{ PeerScores: factory.NewHistogramVec(prometheus.HistogramOpts{
Namespace: ns, Namespace: ns,
Name: "peer_scores", Name: "peer_scores",
Help: "Histogram of currrently connected peer scores", Help: "Histogram of currently connected peer scores",
Buckets: []float64{-100, -40, -20, -10, -5, -2, -1, -0.5, -0.05, 0, 0.05, 0.5, 1, 2, 5, 10, 20, 40}, Buckets: []float64{-100, -40, -20, -10, -5, -2, -1, -0.5, -0.05, 0, 0.05, 0.5, 1, 2, 5, 10, 20, 40},
}, []string{"type"}), }, []string{"type"}),
StreamCount: factory.NewGauge(prometheus.GaugeOpts{ StreamCount: factory.NewGauge(prometheus.GaugeOpts{
......
...@@ -1087,12 +1087,12 @@ func TestResetLoop(t *testing.T) { ...@@ -1087,12 +1087,12 @@ func TestResetLoop(t *testing.T) {
eq.safeHead = refA1 eq.safeHead = refA1
eq.finalized = refA0 eq.finalized = refA0
// Qeueue up the safe attributes // Queue up the safe attributes
require.Nil(t, eq.safeAttributes) require.Nil(t, eq.safeAttributes)
require.ErrorIs(t, eq.Step(context.Background()), NotEnoughData) require.ErrorIs(t, eq.Step(context.Background()), NotEnoughData)
require.NotNil(t, eq.safeAttributes) require.NotNil(t, eq.safeAttributes)
// Peform the reset // Perform the reset
require.ErrorIs(t, eq.Reset(context.Background(), eth.L1BlockRef{}, eth.SystemConfig{}), io.EOF) require.ErrorIs(t, eq.Reset(context.Background(), eth.L1BlockRef{}, eth.SystemConfig{}), io.EOF)
// Expect a FCU after the reset // Expect a FCU after the reset
......
...@@ -451,7 +451,7 @@ export abstract class BaseServiceV2< ...@@ -451,7 +451,7 @@ export abstract class BaseServiceV2<
this.logger.info('waiting for main to complete') this.logger.info('waiting for main to complete')
// if main is in the middle of running wait for it to complete // if main is in the middle of running wait for it to complete
await this.mainPromise await this.mainPromise
this.logger.info('main loop stoped.') this.logger.info('main loop stopped.')
// Shut down the metrics server if it's running. // Shut down the metrics server if it's running.
if (this.server) { if (this.server) {
......
...@@ -6,7 +6,7 @@ const expect = chai.expect ...@@ -6,7 +6,7 @@ const expect = chai.expect
import { Logger, LegacyMetrics, createMetricsServer } from '../src' import { Logger, LegacyMetrics, createMetricsServer } from '../src'
describe('Metrics', () => { describe('Metrics', () => {
it('shoud serve metrics', async () => { it('should serve metrics', async () => {
const metrics = new LegacyMetrics({ const metrics = new LegacyMetrics({
prefix: 'test_metrics', prefix: 'test_metrics',
}) })
......
...@@ -261,7 +261,7 @@ const getContractConfigs = (filterDuplicates = false) => { ...@@ -261,7 +261,7 @@ const getContractConfigs = (filterDuplicates = false) => {
.filter(([_, implementation]) => implementation) .filter(([_, implementation]) => implementation)
.forEach(([chain, implementation], i) => { .forEach(([chain, implementation], i) => {
if (implementation) { if (implementation) {
// make the first one cannonical. This will be mainnet or op mainnet if they exist // make the first one canonical. This will be mainnet or op mainnet if they exist
const name = const name =
i === 0 ? contract.name : `${contract.name}_${chains[chain]}` i === 0 ? contract.name : `${contract.name}_${chains[chain]}`
const nextConfig = { const nextConfig = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment