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.
1 changed files with
6 additions and
6 deletions
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 )