Skip to content

Commit

Permalink
Merge pull request #36 from kenriortega/development
Browse files Browse the repository at this point in the history
ref: remove unused code for save key on localfiles
  • Loading branch information
kenriortega authored Nov 11, 2021
2 parents f1106d2 + 1471db2 commit 77b7860
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions internal/proxy/domain/proxyrepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,26 +52,6 @@ func (r ProxyRepositoryStorage) SaveKEY(engine, key, apikey string) error {
if _, err := r.clientRdb.HSet(context.TODO(), key, apikey).Result(); err != nil {
logger.LogError(errors.Errorf("proxy redis: %v", err).Error())
}
// r.clientRdb.Expire(context.TODO(), key, 24*time.Hour)
// case "local":
// f, err := os.Create("./apikey")

// if err != nil {
// logger.LogError(errors.ErrSavekeyCreateLocal.Error())
// return errors.ErrSavekeyCreateLocal
// }

// // defer f.Close()

// data := []byte(fmt.Sprintf("%s:%s", key, apikey))

// _, err = f.Write(data)

// if err != nil {
// logger.LogError(errors.ErrSavekeyWriteOnLocal.Error())
// return errors.ErrSavekeyWriteOnLocal
// }
// return nil
}
return nil
}
Expand Down

0 comments on commit 77b7860

Please sign in to comment.