Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl Serialize and Deserialize for std::time::Duration #339

Closed
tikue opened this issue May 21, 2016 · 4 comments
Closed

impl Serialize and Deserialize for std::time::Duration #339

tikue opened this issue May 21, 2016 · 4 comments
Assignees

Comments

@tikue
Copy link

tikue commented May 21, 2016

No description provided.

@tikue tikue changed the title impl Serialize/Deserialize for std::time::Duration impl Serialize and Deserialize for std::time::Duration May 21, 2016
@dtolnay
Copy link
Member

dtolnay commented Jun 13, 2016

Do you have a particular format in mind for this?

@tikue
Copy link
Author

tikue commented Jun 13, 2016

I don't, but visiting the fields -- seconds and nanos -- seems like a reasonable option.

@dtolnay
Copy link
Member

dtolnay commented Aug 11, 2016

This is included in Serde 0.8.1.

@vaIgarashi
Copy link

That not very friendly format when you use in configuration

pbeza added a commit to matter-labs/zksync-era that referenced this issue Sep 6, 2024
Relevant logs from the `stage` environment showcasing the issue:
https://grafana.matterlabs.dev/goto/IC-9k4eIR?orgId=1

Error message from the above logs:
```
Error: missing value for field initial_retry_backoff
```

The root cause of the problem supposedly boils down to the mismatch
between the expected format of `TEE_PROVER_INITIAL_RETRY_BACKOFF` and
the actual format. We export it as follows:
```
export TEE_PROVER_INITIAL_RETRY_BACKOFF=1
```
which is not supported as explained here:
serde-rs/serde#339 (comment)
github-merge-queue bot pushed a commit to matter-labs/zksync-era that referenced this issue Sep 6, 2024
…y` config (#2817)

## What ❔

This PR fixes the deserialization issue of `std::time::Duration` in the
`envy` configuration.

Relevant logs from the `stage` environment showcasing the issue:
https://grafana.matterlabs.dev/goto/IC-9k4eIR?orgId=1

Error message from the above logs:
```
Error: missing value for field initial_retry_backoff
```

The root cause of the problem supposedly boils down to the mismatch
between the expected format of `TEE_PROVER_INITIAL_RETRY_BACKOFF` and
the actual format. We export it as follows:
```
export TEE_PROVER_INITIAL_RETRY_BACKOFF=1
```
which is not supported as explained here:
serde-rs/serde#339 (comment)

## Why ❔

To fix the bug.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
github-merge-queue bot pushed a commit to matter-labs/zksync-era that referenced this issue Sep 6, 2024
…y` config (#2817)

## What ❔

This PR fixes the deserialization issue of `std::time::Duration` in the
`envy` configuration.

Relevant logs from the `stage` environment showcasing the issue:
https://grafana.matterlabs.dev/goto/IC-9k4eIR?orgId=1

Error message from the above logs:
```
Error: missing value for field initial_retry_backoff
```

The root cause of the problem supposedly boils down to the mismatch
between the expected format of `TEE_PROVER_INITIAL_RETRY_BACKOFF` and
the actual format. We export it as follows:
```
export TEE_PROVER_INITIAL_RETRY_BACKOFF=1
```
which is not supported as explained here:
serde-rs/serde#339 (comment)

## Why ❔

To fix the bug.

## Checklist

- [x] PR title corresponds to the body of PR (we generate changelog
entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [x] Code has been formatted via `zk fmt` and `zk lint`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants