1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-08-04 21:42:57 +02:00

rename Codec to Secrets (#1581)

This commit is contained in:
Asim Aslam
2020-04-27 14:57:57 +01:00
committed by GitHub
parent 434997e676
commit 83ab47333f
5 changed files with 35 additions and 29 deletions

View File

@ -18,7 +18,7 @@ func TestBox(t *testing.T) {
if err != nil {
t.Fatal(err)
}
alice, bob := NewCodec(secrets.PublicKey(alicePublicKey[:]), secrets.PrivateKey(alicePrivateKey[:])), NewCodec()
alice, bob := NewSecrets(secrets.PublicKey(alicePublicKey[:]), secrets.PrivateKey(alicePrivateKey[:])), NewSecrets()
if err := alice.Init(); err != nil {
t.Error(err)
}