From f9aa4f40ae7468273caf937f2742c36346de08a4 Mon Sep 17 00:00:00 2001 From: "fox.cpp" Date: Wed, 19 Jan 2022 17:50:48 +0300 Subject: [PATCH] server: Mention data reader life time in Backend documentation See #172. --- backend.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend.go b/backend.go index 9885d8e..13e7081 100644 --- a/backend.go +++ b/backend.go @@ -76,6 +76,8 @@ type Session interface { // Add recipient for currently processed message. Rcpt(to string) error // Set currently processed message contents and send it. + // + // r must be consumed before Data returns. Data(r io.Reader) error }