Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authDB/commit/be82fb14d517fcea7edaa70511de78d53d31a6f7?style=unified&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.
slaventius 2 years ago
parent d8b43a4124
commit be82fb14d5
  1. 12
      internal/authDB.go

@ -122,7 +122,7 @@ func (s *AuthDBServer) Registration(ctx context.Context, req *api.RegistrationRe
}
// TODO
_, era := json.Marshal(customer.MessageRegistration)
value, era := json.Marshal(customer.MessageRegistration)
if era != nil {
return nil, era
}
@ -131,12 +131,12 @@ func (s *AuthDBServer) Registration(ctx context.Context, req *api.RegistrationRe
s.logger.Printf("publication code %s to %s ...", customer.MessageRegistration.Code, customer.MessageRegistration.Email)
// Отправим уведомление о необходимости подтверждения
// err := s.kafkaWriter.WriteMessage([]byte(customer.Login), value)
// if err != nil {
// s.logger.Error(err)
err := s.kafkaWriter.WriteMessage([]byte(customer.Login), value)
if err != nil {
s.logger.Error(err)
// return nil, err
// }
return nil, err
}
//
s.logger.Printf("publication code %s to %s completed", customer.MessageRegistration.Code, customer.MessageRegistration.Email)

Loading…
Cancel
Save