http_private: stored procedure: use VARBINARY(20) for peer_id

This commit is contained in:
Joakim Frostegård 2022-04-04 10:15:27 +02:00
parent 9fd1306b2e
commit 1cdd5bde5b
2 changed files with 6 additions and 6 deletions

View file

@ -38,8 +38,8 @@ CREATE OR REPLACE PROCEDURE aquatic_announce_v1 (
IN p_user_token VARCHAR(255),
-- Hex-encoded info hash
IN p_info_hash CHAR(40),
-- Peer ID
IN p_peer_id CHAR(40),
-- Peer ID. VARBINARY since it can be any bytes according to spec.
IN p_peer_id VARBINARY(20),
-- Event (started/stopped/completed) (can be NULL)
IN p_event VARCHAR(9),
-- Bytes uploaded. Passed directly from request.