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

fix: only compute path on first getPath() call #318

Merged
merged 1 commit into from
Apr 14, 2023

Conversation

twoeths
Copy link
Contributor

@twoeths twoeths commented Apr 12, 2023

Motivation

Description

  • Add private field #path and cache it on the first getPath() call

@achingbrain achingbrain changed the title feat: only compute path on first getPath() call fix: only compute path on first getPath() call Apr 14, 2023
@achingbrain achingbrain merged commit 9fd631f into multiformats:master Apr 14, 2023
github-actions bot pushed a commit that referenced this pull request Apr 14, 2023
## [12.1.2](v12.1.1...v12.1.2) (2023-04-14)

### Bug Fixes

* only compute path on first getPath() call ([#318](#318)) ([9fd631f](9fd631f)), closes [/github.com/libp2p/js-libp2p-tcp/pull/264#issuecomment-1503473722](https://github.com/multiformats//github.com/libp2p/js-libp2p-tcp/pull/264/issues/issuecomment-1503473722)
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.

2 participants