Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit b04dfae

Browse files
committed
Add comments
1 parent 225cce9 commit b04dfae

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/github.com/matrix-org/dendrite/clientapi/readers/sync.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ import (
77
"github.com/matrix-org/util"
88
)
99

10+
// Sync handles HTTP requests to /sync
1011
type Sync struct{}
1112

13+
// OnIncomingRequest implements util.JSONRequestHandler
1214
func (s *Sync) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
1315
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
1416
logger.Info("Doing stuff...")

src/github.com/matrix-org/dendrite/clientapi/writers/sendmessage.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import (
77
"github.com/matrix-org/util"
88
)
99

10+
// SendMessage handles HTTP requests to /rooms/$room_id/send/$event_type
1011
type SendMessage struct {
1112
}
1213

14+
// OnIncomingRequest implements util.JSONRequestHandler
1315
func (s *SendMessage) OnIncomingRequest(req *http.Request) (interface{}, *util.HTTPError) {
1416
logger := req.Context().Value(util.CtxValueLogger).(*log.Entry)
1517
logger.Info("Doing stuff...")

0 commit comments

Comments
 (0)