6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-16 03:48:24 +00:00

Code cleanup

This commit is contained in:
James Mills 2022-03-27 01:55:44 +10:00
parent fa26923d54
commit 3f025d1ebb
2 changed files with 2 additions and 2 deletions

@ -87,7 +87,7 @@ func NewClient(me *Addr, options ...IdentityOption) (*Client, error) {
// CreateOrLoadClient creates a Client by creating or loading an existing identity
// from the given identity file and name of the client's user address
func CreateOrLoadBotClient(fn, name string) (*Client, error) {
func CreateOrLoadClient(fn, name string) (*Client, error) {
me, err := ParseAddr(name)
if err != nil {
return nil, err

@ -228,7 +228,7 @@ func (s *Server) setupSvcUser() {
// create or load client for services user
identity := filepath.Join(s.config.Data, servicesIdentity)
cli, err := saltyim.CreateOrLoadBotClient(identity, s.config.SvcUser)
cli, err := saltyim.CreateOrLoadClient(identity, s.config.SvcUser)
if err != nil {
log.WithError(err).Errorf("error creating or loading service user")
return