// PutActor stores the given actor.
PutActor stores the given actor.
// PutActor stores the given actor .
func (s *Provider) PutActor(actor *vocab.ActorType) error {
	logger.Debugf("[%s] Storing actor [%s]", s.serviceName, actor.ID())
	actorBytes, err := json.Marshal(actor)
	if err != nil {
		return fmt.Errorf("failed to marshal actor: %w", err)
	}
	err = s.actorStore.Put(actor.ID().String(), actorBytes)
	if err != nil {
		return orberrors.NewTransient(fmt.Errorf("failed to store actor: %w", err))
	}
	return nil
}
func ( s * Provider ) PutActor ( actor * vocab . ActorType ) error { logger . Debugf ( " " , s . serviceName , actor . ID ( ) ) actorBytes , err := json . Marshal ( actor ) if err != nil { return fmt . Errorf ( " " , err ) } err = s . actorStore . Put ( actor . ID ( ) . String ( ) , actorBytes ) if err != nil { return orberrors . NewTransient ( fmt . Errorf ( " " , err ) ) } return nil }
PutActor stores the given actor.
PutActor stores the given actor .