mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-16 12:08:04 +00:00
New upstream version 1.3.0
This commit is contained in:
+3
-3
@@ -50,14 +50,14 @@ func New(p client.ConfigProvider, cfgs ...*aws.Config) *IoTDataPlane {
|
||||
} else {
|
||||
c = p.ClientConfig(EndpointsID, cfgs...)
|
||||
}
|
||||
if c.SigningNameDerived || len(c.SigningName) == 0 {
|
||||
c.SigningName = "iotdata"
|
||||
}
|
||||
return newClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
|
||||
}
|
||||
|
||||
// newClient creates, initializes and returns a new service client instance.
|
||||
func newClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *IoTDataPlane {
|
||||
if len(signingName) == 0 {
|
||||
signingName = "iotdata"
|
||||
}
|
||||
svc := &IoTDataPlane{
|
||||
Client: client.New(
|
||||
cfg,
|
||||
|
||||
Reference in New Issue
Block a user