This is an automated email from the ASF dual-hosted git repository. dangogh pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-trafficcontrol.git
commit ae533b52484943572a700bef90c3af7abbc2f29e Author: Dan Kirkwood <dang...@apache.org> AuthorDate: Wed Feb 21 11:52:45 2018 -0700 ds Inserter->Creator --- traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go index bc26ace..a969b21 100644 --- a/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go +++ b/traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go @@ -264,14 +264,14 @@ func (ds *TODeliveryService) Update(db *sqlx.DB, user auth.CurrentUser) (error, return nil, tc.NoError } -// Insert implements the Inserter interface. -//all implementations of Inserter should use transactions and return the proper errorType +// Create implements the Creator interface. +//all implementations of Creator should use transactions and return the proper errorType //ParsePQUniqueConstraintError is used to determine if a ds with conflicting values exists //if so, it will return an errorType of DataConflict and the type should be appended to the //generic error message returned //The insert sql returns the id and lastUpdated values of the newly inserted ds and have //to be added to the struct -func (ds *TODeliveryService) Insert(db *sqlx.DB, user auth.CurrentUser) (error, tc.ApiErrorType) { +func (ds *TODeliveryService) Create(db *sqlx.DB, user auth.CurrentUser) (error, tc.ApiErrorType) { tx, err := db.Beginx() defer func() { if tx == nil { -- To stop receiving notification emails like this one, please contact dang...@apache.org.