htlcswitch: add missing method doc

This commit is contained in:
ffranr 2024-04-09 14:13:09 +01:00 committed by Oliver Gugger
parent cc2b7b6fda
commit b59ecc9270
No known key found for this signature in database
GPG key ID: 8E4256593F177720

View file

@ -387,6 +387,8 @@ func (s *InterceptableSwitch) setInterceptor(interceptor ForwardInterceptor) {
}) })
} }
// resolve processes a HTLC given the resolution type specified by the
// intercepting client.
func (s *InterceptableSwitch) resolve(res *FwdResolution) error { func (s *InterceptableSwitch) resolve(res *FwdResolution) error {
intercepted, err := s.heldHtlcSet.pop(res.Key) intercepted, err := s.heldHtlcSet.pop(res.Key)
if err != nil { if err != nil {