// AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server.
// The given additional references are added to the anchor link store so that they are included in WebFinger responses.
AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server.
The given additional references are added to the anchor link store so that they are included in WebFinger responses.
// AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server . // The given additional references are added to the anchor link store so that they are included in WebFinger responses .
func (p *Handler) AnchorEventAcknowledged(actor, anchorRef *url.URL, additionalAnchorRefs []*url.URL) error {
	logger.Infof("Anchor event was acknowledged by [%s] for anchor %s. Additional anchors: %s",
		actor, hashlink.ToString(anchorRef), hashlink.ToString(additionalAnchorRefs...))
	links, err := getLinks(anchorRef, additionalAnchorRefs)
	if err != nil {
		return fmt.Errorf("get links: %w", err)
	}
	if err := p.anchorLinkStore.PutLinks(links); err != nil {
		return fmt.Errorf("put links: %w", err)
	}
	return nil
}
func ( p * Handler ) AnchorEventAcknowledged ( actor , anchorRef * url . URL , additionalAnchorRefs [ ] * url . URL ) error { logger . Infof ( " " , actor , hashlink . ToString ( anchorRef ) , hashlink . ToString ( additionalAnchorRefs ... ) ) links , err := getLinks ( anchorRef , additionalAnchorRefs ) if err != nil { return fmt . Errorf ( " " , err ) } if err := p . anchorLinkStore . PutLinks ( links ) ; err != nil { return fmt . Errorf ( " " , err ) } return nil }
AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server.
AnchorEventAcknowledged handles a notification of a successful anchor event processed from an Orb server .