fix build warning
This commit is contained in:
parent
04ec726d3b
commit
143de24769
1 changed files with 2 additions and 1 deletions
|
@ -919,7 +919,6 @@ s3Configuration c = cfg
|
||||||
}
|
}
|
||||||
where
|
where
|
||||||
h = fromJust $ getRemoteConfigValue hostField c
|
h = fromJust $ getRemoteConfigValue hostField c
|
||||||
r = encodeBS <$> getRemoteConfigValue regionField c
|
|
||||||
datacenter = fromJust $ getRemoteConfigValue datacenterField c
|
datacenter = fromJust $ getRemoteConfigValue datacenterField c
|
||||||
-- When the default S3 host is configured, connect directly to
|
-- When the default S3 host is configured, connect directly to
|
||||||
-- the S3 endpoint for the configured datacenter.
|
-- the S3 endpoint for the configured datacenter.
|
||||||
|
@ -961,6 +960,8 @@ s3Configuration c = cfg
|
||||||
_ -> (S3.s3 proto endpoint False)
|
_ -> (S3.s3 proto endpoint False)
|
||||||
#if MIN_VERSION_aws(0,24,0)
|
#if MIN_VERSION_aws(0,24,0)
|
||||||
{ S3.s3Region = r }
|
{ S3.s3Region = r }
|
||||||
|
|
||||||
|
r = encodeBS <$> getRemoteConfigValue regionField c
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
data S3Info = S3Info
|
data S3Info = S3Info
|
||||||
|
|
Loading…
Reference in a new issue