From: Daniel Swarbrick <dswarbrick@debian.org>
Date: Mon, 26 Feb 2024 19:45:40 +0100
Subject: Fix misalignment of struct member

Bug: https://github.com/aws/aws-sdk-go-v2/issues/2518

Misaligned struct member `size` will cause a panic to occur on 32-bit
arch, since it is used in atomic operations.
---
 service/internal/endpoint-discovery/cache.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/service/internal/endpoint-discovery/cache.go b/service/internal/endpoint-discovery/cache.go
index 14ee172..1ca6332 100644
--- a/service/internal/endpoint-discovery/cache.go
+++ b/service/internal/endpoint-discovery/cache.go
@@ -9,12 +9,12 @@ import (
 // based on some key. The data structure makes use of a read write
 // mutex to enable asynchronous use.
 type EndpointCache struct {
-	endpoints     sync.Map
-	endpointLimit int64
 	// size is used to count the number elements in the cache.
 	// The atomic package is used to ensure this size is accurate when
 	// using multiple goroutines.
 	size int64
+	endpoints     sync.Map
+	endpointLimit int64
 }
 
 // NewEndpointCache will return a newly initialized cache with a limit
