Skip to content

Commit df29a44

Browse files
committed
Removing json utility
1 parent c910839 commit df29a44

File tree

3 files changed

+2
-204
lines changed

3 files changed

+2
-204
lines changed

services/kafka_password_delivery_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ package services
22

33
import (
44
"context"
5+
"encoding/json"
56
"errors"
67
"fmt"
78
"github.com/segmentio/kafka-go"
89
"github.com/shibbirmcc/user-auth-and-permissions/models"
9-
"github.com/shibbirmcc/user-auth-and-permissions/utils"
1010
"log"
1111
"os"
1212
"strings"
@@ -53,7 +53,7 @@ func NewKafkaPasswordDeliveryService() (*KafkaPasswordDeliveryService, error) {
5353
}
5454

5555
func (s *KafkaPasswordDeliveryService) SendPassword(credentials models.UserCredentials) error {
56-
message, err := utils.MarshalObject(credentials)
56+
message, err := json.Marshal(credentials)
5757
if err != nil {
5858
return err
5959
}

utils/json_utils.go

Lines changed: 0 additions & 19 deletions
This file was deleted.

utils/json_utils_test.go

Lines changed: 0 additions & 183 deletions
This file was deleted.

0 commit comments

Comments
 (0)