Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
10cd358e
Commit
10cd358e
authored
5 years ago
by
Nikolay Volf
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings in grafana module (#4486)
parent
205ddec3
Branches
gh-readonly-queue/master/pr-5765-087ea0352ec2a3a2f0dc5254fe0455ba429bc25f
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/utils/grafana-data-source/src/lib.rs
+5
-0
5 additions, 0 deletions
substrate/utils/grafana-data-source/src/lib.rs
with
5 additions
and
0 deletions
substrate/utils/grafana-data-source/src/lib.rs
+
5
−
0
View file @
10cd358e
...
...
@@ -71,10 +71,15 @@ pub fn record_metrics_slice(metrics: &[(&str, f32)]) -> Result<(), Error> {
/// Error type that can be returned by either `record_metrics` or `run_server`.
#[derive(Debug,
derive_more::Display,
derive_more::From)]
pub
enum
Error
{
/// Hyper internal error.
Hyper
(
hyper
::
Error
),
/// Serialization/deserialization error.
Serde
(
serde_json
::
Error
),
/// Http request error.
Http
(
hyper
::
http
::
Error
),
/// Timestamp error.
Timestamp
(
TryFromIntError
),
/// i/o error.
Io
(
std
::
io
::
Error
)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment