mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-25 11:45:30 +00:00
Fixup comments
This commit is contained in:
parent
0af5dc63a8
commit
aae77da73f
@ -39,7 +39,11 @@ ThumbnailRequirement = namedtuple(
|
|||||||
)
|
)
|
||||||
|
|
||||||
MediaStorageProviderConfig = namedtuple(
|
MediaStorageProviderConfig = namedtuple(
|
||||||
"MediaStorageProviderConfig", ("store_local", "store_remote", "store_synchronous",)
|
"MediaStorageProviderConfig", (
|
||||||
|
"store_local", # Whether to store newly uploaded local files
|
||||||
|
"store_remote", # Whether to store newly downloaded remote files
|
||||||
|
"store_synchronous", # Whether to wait for successful storage for local uploads
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ class FileStorageProviderBackend(StorageProvider):
|
|||||||
|
|
||||||
Args:
|
Args:
|
||||||
hs (HomeServer)
|
hs (HomeServer)
|
||||||
config: The config returned by `parse_config`, i
|
config: The config returned by `parse_config`.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, hs, config):
|
def __init__(self, hs, config):
|
||||||
@ -133,7 +133,7 @@ class FileStorageProviderBackend(StorageProvider):
|
|||||||
|
|
||||||
The returned value is passed into the constructor.
|
The returned value is passed into the constructor.
|
||||||
|
|
||||||
In this case we only care about a single param, the directory, so lets
|
In this case we only care about a single param, the directory, so let's
|
||||||
just pull that out.
|
just pull that out.
|
||||||
"""
|
"""
|
||||||
return Config.ensure_directory(config["directory"])
|
return Config.ensure_directory(config["directory"])
|
||||||
|
Loading…
Reference in New Issue
Block a user