frostfs-sdk-go/pkg/network
Evgenii Stratonikov 971e740ea3
All checks were successful
DCO / DCO (pull_request) Successful in 30s
Code generation / Generate proto (pull_request) Successful in 37s
Tests and linters / Tests (pull_request) Successful in 1m0s
Tests and linters / Lint (pull_request) Successful in 1m51s
[#35] network: Use AppendComponent() for TLS encapsulation
As advocated explicitly in https://github.com/multiformats/go-multiaddr/blob/master/v015-MIGRATION.md

Answering a question about safety:
AppendComponent() appends to `a.ma`` in place.
`a.ma` is created by FromString() function,
so there is only a single goroutine appending to it.
Thus, assuming `FromString()` itself is called from a single goroutine,
no data race is introduced.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2025-04-12 21:19:30 +03:00
..
address.go [#35] network: Use AppendComponent() for TLS encapsulation 2025-04-12 21:19:30 +03:00
address_test.go [#305] tree/pool: Add flag to use net map to prioritize tree services 2024-12-18 09:23:44 +03:00
tls.go [#35] network: Use AppendComponent() for TLS encapsulation 2025-04-12 21:19:30 +03:00
tls_test.go [#305] tree/pool: Add flag to use net map to prioritize tree services 2024-12-18 09:23:44 +03:00