remove incorrect comment

resourcePrepare does not cause the resource to only be prepared once.

The http manager should be reused, which does avoid http connection
overhead, but not because of the use of resourcePrepare.
This commit is contained in:
Joey Hess 2019-01-30 14:38:35 -04:00
parent 809cfbbd8a
commit 5d394023eb
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -120,8 +120,6 @@ webdavSetup _ mu mcreds c gc = do
c'' <- setRemoteCredPair encsetup c' gc (davCreds u) creds
return (c'', u)
-- Opens a http connection to the DAV server, which will be reused
-- each time the helper is called.
prepareDAV :: Remote -> (Maybe DavHandle -> helper) -> Preparer helper
prepareDAV = resourcePrepare . const . withDAVHandle