Skip to content

various small BaseServiceV2 improvements#2315

Merged
smartcontracts merged 2 commits intodevelopfrom
sc/base-service-mini-improvements
Mar 11, 2022
Merged

various small BaseServiceV2 improvements#2315
smartcontracts merged 2 commits intodevelopfrom
sc/base-service-mini-improvements

Conversation

@smartcontracts
Copy link
Copy Markdown
Contributor

Description

  • Adds proper snake_case for metric names
  • Updates log lines for when the service is shutting down

Fixes the snake case function for metric names to properly account for
strings which include "L1" or "L2". Normally these would be split into
"L_1" and "L_2" respectively, but we want to join these since they're
quite common and "L_1" looks silly.
Improves the log lines within BaseServiceV2 when the service is being
shut down. Follows the pattern already laid out in the main() function
which will log when key events happen.
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 11, 2022

🦋 Changeset detected

Latest commit: f776105

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@eth-optimism/common-ts Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/message-relayer Patch
@eth-optimism/replica-healthcheck Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 11, 2022

Codecov Report

Merging #2315 (f776105) into develop (cdb61a3) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2315   +/-   ##
========================================
  Coverage    80.08%   80.08%           
========================================
  Files           77       77           
  Lines         2460     2460           
  Branches       450      450           
========================================
  Hits          1970     1970           
  Misses         490      490           
Flag Coverage Δ
contracts 99.29% <ø> (ø)
core-utils 86.77% <ø> (ø)
data-transport-layer 49.72% <ø> (ø)
sdk 55.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cdb61a3...f776105. Read the comment docs.

@smartcontracts smartcontracts merged commit 8d1f346 into develop Mar 11, 2022
@smartcontracts smartcontracts deleted the sc/base-service-mini-improvements branch March 11, 2022 23:37
theochap added a commit that referenced this pull request Dec 10, 2025
…ce (#2315)

## Description

This PR inverts the way actors build their channels. Instead of emitting
a list of `OutboundData` (channels to send data to) and using
`InboundData` (channels to receive data from) as `Context`, it rather
emits `InboundData` and uses `OutboundData` as context.
This allows to define data flows where several actors send to the same
receiver (using `mpsc` channels for instance).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants