mirror of
https://github.com/simplex-chat/simplexmq.git
synced 2026-05-29 20:24:15 +00:00
fix comment (#645)
This commit is contained in:
@@ -1338,7 +1338,7 @@ createServer_ db newSrv@ProtocolServer {host, port, keyHash} =
|
||||
insertNewServer_ =
|
||||
DB.execute db "INSERT INTO servers (host, port, key_hash) VALUES (?,?,?)" (host, port, keyHash)
|
||||
|
||||
-- | Returns the stored server key hash if it is different from the passed one, or the error if the server does not exist.
|
||||
-- | Returns the passed server key hash if it is different from the stored one, or the error if the server does not exist.
|
||||
getServerKeyHash_ :: DB.Connection -> SMPServer -> IO (Either StoreError (Maybe C.KeyHash))
|
||||
getServerKeyHash_ db ProtocolServer {host, port, keyHash} = do
|
||||
firstRow useKeyHash SEServerNotFound $
|
||||
|
||||
Reference in New Issue
Block a user