@@ -596,22 +596,14 @@ func storeRecord(ctx storage.Context, tokenId []byte, name string, typ RecordTyp
596
596
597
597
// putSoaRecord stores soa domain record.
598
598
func putSoaRecord (ctx storage.Context , name , email string , refresh , retry , expire , ttl int ) {
599
- var id byte
600
599
tokenId := []byte (tokenIDFromName (name ))
601
- recordKey := getIdRecordKey (tokenId , name , SOA , id )
602
- rs := RecordState {
603
- Name : name ,
604
- Type : SOA ,
605
- ID : id ,
606
- Data : name + " " + email + " " +
607
- std .Itoa (runtime .GetTime (), 10 ) + " " +
608
- std .Itoa (refresh , 10 ) + " " +
609
- std .Itoa (retry , 10 ) + " " +
610
- std .Itoa (expire , 10 ) + " " +
611
- std .Itoa (ttl , 10 ),
612
- }
613
- recBytes := std .Serialize (rs )
614
- storage .Put (ctx , recordKey , recBytes )
600
+ data := name + " " + email + " " +
601
+ std .Itoa (runtime .GetTime (), 10 ) + " " +
602
+ std .Itoa (refresh , 10 ) + " " +
603
+ std .Itoa (retry , 10 ) + " " +
604
+ std .Itoa (expire , 10 ) + " " +
605
+ std .Itoa (ttl , 10 )
606
+ storeRecord (ctx , tokenId , name , SOA , 0 , data )
615
607
}
616
608
617
609
// updateSoaSerial stores soa domain record.
0 commit comments