mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 14:07:35 -06:00
mess about with some structure to help w/ deref
This commit is contained in:
parent
18c39ad23d
commit
f2041f9be3
13 changed files with 594 additions and 402 deletions
16
internal/transport/deliver.go
Normal file
16
internal/transport/deliver.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package transport
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/url"
|
||||
)
|
||||
|
||||
func (t *transport) BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error {
|
||||
return t.sigTransport.BatchDeliver(c, b, recipients)
|
||||
}
|
||||
|
||||
func (t *transport) Deliver(c context.Context, b []byte, to *url.URL) error {
|
||||
l := t.log.WithField("func", "Deliver")
|
||||
l.Debugf("performing POST to %s", to.String())
|
||||
return t.sigTransport.Deliver(c, b, to)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue