diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:18:35 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-07-21 14:18:35 +0200 |
| commit | dc7bd11d855f0b3266612a18606801f4e09ecc09 (patch) | |
| tree | 6d3d483601abc00402f7be06d4d630238128ea2b /field_test.go | |
| parent | 8b2ace1c7cb82e1af923b8fc5fa7ffba820b9238 (diff) | |
| download | go-schwift-dc7bd11d855f0b3266612a18606801f4e09ecc09.tar.gz | |
make Account.Headers and Container.Headers thread-safe
For type Object, it is a good tradeoff to not carry a mutex in every
instance, since Objects are likely only used in the scope of a
particular operation (and thus within an individual goroutine). But
Account and Container instances are much more likely to be initialized
once on startup and then shared across goroutines, so making them safer
to use at the expense of a slight increase in resource usage looks like
a good choice.
Diffstat (limited to 'field_test.go')
0 files changed, 0 insertions, 0 deletions
