This is an automated email from the ASF dual-hosted git repository.

dangogh pushed a commit to branch master
in repository

commit 8620c4f9d64060ab7de86947016f1ef80c3e3c92
Author: Dewayne Richardson <>
AuthorDate: Thu Feb 22 10:16:19 2018 -0700

    updated for the Inserter->Creator interface change
 traffic_ops/traffic_ops_golang/status/statuses.go      | 6 +++---
 traffic_ops/traffic_ops_golang/status/statuses_test.go | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/traffic_ops/traffic_ops_golang/status/statuses.go 
index 3a54ec7..d273e03 100644
--- a/traffic_ops/traffic_ops_golang/status/statuses.go
+++ b/traffic_ops/traffic_ops_golang/status/statuses.go
@@ -182,14 +182,14 @@ func (status *TOStatus) Update(db *sqlx.DB, user 
auth.CurrentUser) (error, tc.Ap
        return nil, tc.NoError
-//The TOStatus implementation of the Inserter interface
-//all implementations of Inserter should use transactions and return the 
proper errorType
+//The TOStatus implementation of the Creator interface
+//all implementations of Creator should use transactions and return the proper 
 //ParsePQUniqueConstraintError is used to determine if a status 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 
status and have
 //to be added to the struct
-func (status *TOStatus) Insert(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
+func (status *TOStatus) Create(db *sqlx.DB, user auth.CurrentUser) (error, 
tc.ApiErrorType) {
        rollbackTransaction := true
        tx, err := db.Beginx()
        defer func() {
diff --git a/traffic_ops/traffic_ops_golang/status/statuses_test.go 
index 16bbe13..ca37fa4 100644
--- a/traffic_ops/traffic_ops_golang/status/statuses_test.go
+++ b/traffic_ops/traffic_ops_golang/status/statuses_test.go
@@ -91,8 +91,8 @@ func TestInterfaces(t *testing.T) {
        var i interface{}
        i = &TOStatus{}
-       if _, ok := i.(api.Inserter); !ok {
-               t.Errorf("Status must be Inserter")
+       if _, ok := i.(api.Creator); !ok {
+               t.Errorf("Status must be Creator")
        if _, ok := i.(api.Reader); !ok {
                t.Errorf("Status must be Reader")

To stop receiving notification emails like this one, please contact

Reply via email to