mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[PR #162] [MERGED] Refactor: Use more specific type in argument of DB.Update #334
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#334
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/acme-dns/acme-dns/pull/162
Author: @znerol
Created: 4/9/2019
Status: ✅ Merged
Merged: 6/12/2019
Merged by: @joohoi
Base:
master← Head:refactor/master/more-specific-param-type📝 Commits (1)
ed32c53Refactor: Use more specific type in argument of DB.Update📊 Changes
5 files changed (+8 additions, -8 deletions)
View changed files
📝
api.go(+1 -1)📝
db.go(+1 -1)📝
db_test.go(+4 -4)📝
dns_test.go(+1 -1)📝
types.go(+1 -1)📄 Description
The DB.Update function takes a type of ACMETxt. However, the function
only requires the Value and Subdomain fields.
Refactor the function such that it takes ACMETxtPost instead of the full
ACMETxt record. This will simplify extraction of txt-record related
logic from the db code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.