mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Consistent function naming for metadata
This commit is contained in:
parent
042a3400fe
commit
74de8c9416
2 changed files with 7 additions and 7 deletions
|
@ -433,7 +433,7 @@ func (r *router) handleProto(packet []byte) {
|
|||
case wire_SessionMetaRequest:
|
||||
fallthrough
|
||||
case wire_SessionMetaResponse:
|
||||
r.handleMeta(bs, &p.FromKey)
|
||||
r.handleMetadata(bs, &p.FromKey)
|
||||
case wire_DHTLookupRequest:
|
||||
r.handleDHTReq(bs, &p.FromKey)
|
||||
case wire_DHTLookupResponse:
|
||||
|
@ -479,13 +479,13 @@ func (r *router) handleDHTRes(bs []byte, fromKey *boxPubKey) {
|
|||
}
|
||||
|
||||
// Decodes meta request
|
||||
func (r *router) handleMeta(bs []byte, fromKey *boxPubKey) {
|
||||
func (r *router) handleMetadata(bs []byte, fromKey *boxPubKey) {
|
||||
req := sessionMeta{}
|
||||
if !req.decode(bs) {
|
||||
return
|
||||
}
|
||||
req.SendPermPub = *fromKey
|
||||
r.core.sessions.handleMeta(&req)
|
||||
r.core.sessions.handleMetadata(&req)
|
||||
}
|
||||
|
||||
// Passed a function to call.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue