// HandleAnchorEvent stores the anchor event or returns an error if it was set.
HandleAnchorEvent stores the anchor event or returns an error if it was set.
// HandleAnchorEvent stores the anchor event or returns an error if it was set .
func (m *AnchorEventHandler) HandleAnchorEvent(actor, hl, src *url.URL, anchorEvent *vocab.AnchorEventType) error {
	if m.err != nil {
		return m.err
	}
	m.mutex.Lock()
	defer m.mutex.Unlock()
	m.anchorCreds[hl.String()] = anchorEvent
	return nil
}
func ( m * AnchorEventHandler ) HandleAnchorEvent ( actor , hl , src * url . URL , anchorEvent * vocab . AnchorEventType ) error { if m . err != nil { return m . err } m . mutex . Lock ( ) defer m . mutex . Unlock ( ) m . anchorCreds [ hl . String ( ) ] = anchorEvent return nil }
HandleAnchorEvent stores the anchor event or returns an error if it was set.
HandleAnchorEvent stores the anchor event or returns an error if it was set .